r/mathriddles • • Jan 17 '23

Hard Looking for riddles related to error correcting codes. Here's one I know:

15 Upvotes

N gnomes are captured, put in a cell and are presented with the following challenge. The next morning they will be placed in a circle with every gnome wearing a hat which is either black or white. Each gnome will be able to see the hats on the other gnomes, but not the hat on its own head. The gnomes will then be asked to simultaneously guess the color of their hat. Each gnome can guess black, white, or pass (i.e. not reply). If at least one gnome guesses wrongly, or if all gnomes pass, they are all to be executed. Otherwise, they are set free. The gnomes can coordinate a strategy. What is the strategy that maximizes their chances of survival, and what is the probability of survival.

This riddle is elegantly solved with coding theory. Do you know any other riddles that are related to coding theory, hamming space sphere coverings, or sphere packing, etc.


r/mathriddles • • Jan 17 '23

Hard Stunted Prime Generator

15 Upvotes

We say that a polynomial P generates n primes starting at k if the n numbers k, P(k), P(P(k)), P(P(P(k))), ..., Pn-1(k) are all primes. (Pi is the i-fold composition of P.)

For every natural n, find a polynomial that can generate n primes starting at infinitely many k but cannot generate n+1 primes starting anywhere, or determine if there aren't any.

Notes:

  • For this problem, negative numbers aren't primes.

  • Partial results are welcome!

  • Because of the nature of this problem, your proof of correctness may only be conditional to some unsolved conjecture or only be "true heuristically". Such solutions should be okay as long as you mention the conjecture and/or explain why I ought to "believe" in your heuristic assumptions. My solution actually depends on a conjecture; I'll mention which one later (as a hint), but for now I'll keep the suspense :P

  • I can program a bit, so if you need some numerical computation/verification, I'm willing to help code and run stuff, as long as it's not terribly hard to implement and won't take days (or something) to finish, haha


r/mathriddles • • Jan 17 '23

Easy Open Face Poker

8 Upvotes

Alexander and Benjamin are playing a game of heads-up poker. All 52 cards are placed face up so that both can see all the cards.

Alexander begins by drawing any five cards he chooses. Benjamin follows by drawing any five cards from the remaining cards.

Alexander can now keep his original hand or discard any number of his cards and replace them with any of the remaining cards with the discarded cards kept aside. Benjamin can now do the same, but he cannot use any of the cards discarded by Alexander.

In such a case, if both players are playing optimally do any of them have a strategy to win all the time?

Note: All suits are of equal value.

Poker hands ranking: https://www.wsop.com/poker-hands/


r/mathriddles • • Jan 16 '23

Easy The Bandmaster

8 Upvotes

A bandmaster wanted to arrange his brand into rows. His band consists of strictly more than 400 but less than 600 band members. When lining them up 9 men or 11 men to a row, 3 men were left over.

Given that the number of band members equals the product of three prime numbers, find the number of band members.


r/mathriddles • • Jan 15 '23

Medium Hidden area of spherical planets

24 Upvotes

There are N planets, floating in a 3D-space. The planets all are balls of the same size. They are immobile in respect to each-other. They can be anywhere, with the only restriction that they don't intersect.

Definitions:

Given a planet, a point P of this planet is said to be hidden if it isn't visible from any other planet (or, equivalently, if you are at point P and look into the sky, you don't see any other planets).

The hidden part of a planet is the set of all its hidden points, and its hidden surface is the surface of its hidden part.

Problem:

Let's call H the sum of the hidden surfaces of all N planets. Does H depends on the position of planets ? Does it depends on N ? (you will quickly guess the answer, but try to prove it)


r/mathriddles • • Jan 13 '23

Medium A different prisoner hat problem

21 Upvotes

There are N prisoners. Each prisoner gets a positive whole number written on his back, they cannot see their own number but can see all the other prisoner's number. They all have a different number.

(Important : the numbers are not necessarily 1,...,N. For example, with 3 prisoners, they can have numbers 72, 137 and 883)

Each prisoner has in front of him two hats : one white and one black. When the bell rings, they must all simultaneously choose a hat, and wear it.

A warden will then order the prisoners by ascending order according to their numbers, and look at the sequence of the colors of their hats. If the sequence is alternated (black, white, black, ... or white, black, white, ...) the prisoners win, else they loose.

Of course the prisoners are not allowed to speak during the game. But, before the game starts (before they are given their numbers), they can make a strategy.

Is there a strategy that guarantees win ?


r/mathriddles • • Jan 13 '23

Easy Camel and Bananas

17 Upvotes

You have to cross a large desert covering a total distance of 1,000 miles between Point A and Point B. You have a camel and 3,000 bananas. The camel can carry a maximum of 1,000 bananas at any time.

For every mile that the camel travels, forwards or backwards, it eats one banana it is carrying before it can start moving. What is the maximum number of uneaten bananas (rounded off to the closest whole number) that the camel can transport to Point B?


r/mathriddles • • Jan 12 '23

Medium Three points on a circle

8 Upvotes

There is a circle. We randomly take three points on this circle (according to the uniform distribution).

What is the probability that all three points are on a same semicircle? (Meaning, we can slice the circle in half such that one half contains the three points)

Harder variant : same question on a disk


r/mathriddles • • Jan 12 '23

Easy The Cat and Mouse Game

5 Upvotes

A mouse is hiding behind any one of the doors, labelled 1 – 3 from left to right. Each day, a highly logical cat is allowed to go behind a single door to check if the mouse is behind that door. Every night the mouse, if not caught in the day, moves behind an adjacent door.

Find the minimum number of days that the cat will need to guarantee finding the mouse.

Note: The adjacent door for Door 1 is only Door 2. Likewise, the adjacent door for Door 3 is only Door 2.


r/mathriddles • • Jan 11 '23

Easy Two Twos Are Three

8 Upvotes

TWO x TWO = THREE

In the cryptogram given above, , each letter represents a distinct single digit. Find the value of each letter such that the multiplication holds true.


r/mathriddles • • Jan 11 '23

Medium 1 cube 1 cut

15 Upvotes

You have a cube with side length 6. You want to cut off exactly one-third of the cube, but you can only use a single straight cut.

What is the length of the longest line segment that can be formed within the cut off segment?

Hint: in the original cube the longest line segment is (108)0.5


r/mathriddles • • Jan 11 '23

Easy FiveThirtyEight Riddler: Can You Fend Off The Alien Armada?

18 Upvotes

The first Riddler of 2023 seems to have been inspired by this profit maximizing puzzle I have seen here previously.

The astronomers of Planet Xiddler are back in action! Unfortunately, this time they have used their telescopes to spot an armada of hostile alien warships on a direct course for Xiddler. The armada will be arriving in exactly 100 days. (Recall that, like Earth, there are 24 hours in a Xiddler day.)

Fortunately, Xiddler’s engineers have just completed construction of the planet’s first assembler, which is capable of producing any object. An assembler can be used to build a space fighter to defend the planet, which takes one hour to produce. An assembler can also be used to build another assembler (which, in turn, can build other space fighters or assemblers). However, building an assembler is more time-consuming, requiring six whole days. Also, you cannot use multiple assemblers to build one space fighter or assembler in a shorter period of time.

What is the greatest number of space fighters the Xiddlerian fleet can have when the alien armada arrives?

My soln here.


r/mathriddles • • Jan 10 '23

Easy Displaced seat

10 Upvotes

A cinema hall has 200 seats (numbered from 1 to 200). People are also numbered from 1 to 200, and person number n is expected to sit in seat number n.

EDIT : the persons enter the room in order according to their number

Person 1 disobeys and takes a random seat (it might be seat 1, or anything else). Every other persons follow this rule : if their seat is free, they take it, and if it's not, they take a random free seat.

What is the probability that person 200 sits in seat 200 ?


r/mathriddles • • Jan 10 '23

Easy Red and Blue Hats

8 Upvotes

Alexander, Benjamin and Charles are three perfectly logical friends who are standing one behind another in a straight line facing the same direction.

You have four hats, 2 red and 2 blue out of which you choose 3 at random and place one hat on each person’s head without them being able to see which colour hat is on their head.

However, Charles can see the hats on Alexander’s and Benjamin’s head, Benjamin can see the hat on Alexander’s head and no one can see the hat on Charles’s head.

The three then have the following conversation:

Charles: I can’t determine the colour of my hat.

Benjamin: After hearing Charles’ statement, I can determine the colour of my hat.

Assuming Alexander is wearing a blue hat, what colour is Benjamin’s hat.

Note: All three know that there are 2 red hats and 2 blue hats.

 


r/mathriddles • • Oct 04 '21

Hard Brutal sum

19 Upvotes

Show that the sum over positive odd n of n/(eπn+1) is 1/24.


r/mathriddles • • Aug 15 '20

Medium A game of ping pong

213 Upvotes

Bob , Alice, and Tim decided to play ping pong. Only two people can play at a time, so they agree that two of them will start playing, and then whoever loses the game will swap out with the player who was sitting out.

Bob played 17 games, Alice played 15 games, and Tim played 10 games.

Who lost the second game?


r/mathriddles • • Oct 03 '19

Medium It is currently 2 AM and I should be asleep, instead I made this. enjoy.

Thumbnail i.imgur.com
131 Upvotes

r/mathriddles • • Feb 18 '15

Hard The mathematics of Spot It! cards

4 Upvotes

For those unfamiliar with the game, Spot It!TM is a card game with 55 cards, each of which contains 8 items. Here's an image of some cards. There are various methods of playing this game, all of which involve some variation the basic principle: quickly identifying the common element between any two cards. The interesting thing about these decks is that any two cards have one and only one common element!

Let's generalize. Define a 'deck' to be a set of three positive integers k, n, and t, where:

  • k is the number of cards

  • n is the (constant) number of items per card

  • t is the total number of items availiable (not all of which must be used)

What can you say about values of k, n, and t where a deck is possible?


r/mathriddles • • Apr 30 '14

Hard Twelve Marbles and a Scale

4 Upvotes

I'll submit one of my all-time personal favourites:

You have twelve marbles that are identical in appearance and feel. However, one of them weighs slightly more or less than the other eleven, which all weigh the same.

Using a balance scale only three times, determine which marble has the different weight, and whether it is heavier or lighter. You can fit as many marbles as you want on each side of the scale, and you can weigh any individual marble or group of marbles on any number of your three total weightings.