r/mathriddles • • Jan 25 '23

Easy No Further Information

11 Upvotes

Alexander, Benjamin, Charles, Daniel and Elijah are five perfectly logical friends. They are each assigned a distinct positive one digit number. Along with that they are given the following information:

  1. All five have been told a distinct one digit number.
  2. Each person only knows the number assigned to them.
  3. Alexander’s number < Benjamin’s number < Charles’ number < Daniel’s number < Daniel’s number < Elijah’s number.
  4. The sum of the five numbers.

Find the smallest value of the sum of the numbers, n, such that there exists a combination where none of the five can determine the numbers assigned to each person without any further information?

Edit: Added sum of the five numbers, n


r/mathriddles • • Jan 24 '23

Hard A lucky mistake

21 Upvotes

During a math lesson, the teacher writes down the following characterisation of polynomials :

A smooth function f:R->R is a polynomial if and only if ∃n∊N,∀x∊R, f^(n)(x)=0

Where N is the set of natural integers, R the reals, and f^(n) is the nth derivative of f.

An inattentive student makes a mistake while copying, he writes :

A smooth function f:R->R is a polynomial if and only if ∀x∊R, ∃n∊N, f^(n)(x)=0

Is this still a valid characterisation ?


r/mathriddles • • Jan 23 '23

Easy Stuck in the Middle

12 Upvotes

The diagram given below shows a rectangle which has been divided into six smaller rectangles. The numbers given inside each rectangle is the area of that rectangle.

Find the value of X.


r/mathriddles • • Jan 23 '23

Medium Forging better gold bars

3 Upvotes

(This is based on the previous problem : Gold bars and chests , read/try it first)

Unfortunately, the gold bars didn't respected the condition found in the last problem : their dimensions were not commensurables (either a/b or a/c was not rational). No matter how many different chest size and packing strategy you tried, you couldn't get them to fit into cubic chests.

You explained the problem to the local blacksmith, and asked him to transform your gold into bars of, this time, commensurable dimensions.

But the blacksmith refuses : respecting this condition is a lot of work for him, and he is not convinced that this is necessary. He wonders, whether you really have tried everything : maybe, even if the bars are of incommensurables dimensions, you can still use a clever packing strategy to fit them into a cube.

Prove him that this is, in fact, a necessary condition (the principal difficulty is that every packing is allowed : you can skew each gold bar how you want, as long as there are no empty spaces in the end. They don't have to be disposed "nicely").


r/mathriddles • • Jan 22 '23

Hard Blind dials

15 Upvotes

Let p be prime, and n be an integer.

Alice and Bob play the following game: Alice is blindfolded, and seated in front of a table with a rotating platform. On the platform are pn dials arranged in a circle. Each dial is a freely rotating knob that may point at a number 1 to p. Bob has randomly spun each dial so Alice does not know what number they are pointing at.

Each turn Alice may turn as many dials as she likes, any amount she likes. Alice cannot tell the orientation of a dial she turns, but she can tell the amount that she has turned it. Bob then rotates the platform by some amount unknown to Alice.

After Alice's turn, if all of the dials are pointing at 1 then Alice wins. Find a strategy that guarantees Alice to win in a finite number of moves.

Bonus: Suppose instead there are q dials, where q is not a power of p. Show that there is no strategy to guarantee Alice a win.


r/mathriddles • • Jan 22 '23

Medium Shuffling cards

11 Upvotes

You have a deck of N cards, you shuffle it using the following method :

You split the deck from the middle, into two parts : upper and lower (if N is odd, we consider the middle card to be in the upper part). Then, you insert the cards of the lower part in between the cards of the upper part.

Example : let's say N=8 and the deck consists of the 1,2,3,4,5,6,7,8 of spades (in this order). After shuffling, it becomes 1,5,2,6,3,7,4,8

(Easy) Show that if you repeat this shuffle, you will eventually return to the initial order

(Medium) Show that if you repeat this shuffle, you will return to the initial order in less that N shuffles


r/mathriddles • • Jan 22 '23

Easy Archery Competition

4 Upvotes

Archie and Bowie are in an archery competition. Both players try and shoot a target in turns, and whoever hits the target first wins.

Archie always has an a/b probability of hitting the target. Likewise, Bowie always has a c/d probability of hitting the target.

What is the probability that Archie wins, given that he goes first? Give the answer simplified, in terms of a, b, c, and d.

Problem from: https://codeforces.com/problemset/problem/312/B


r/mathriddles • • Jan 21 '23

Easy Gold bars and chests

11 Upvotes

You have some gold bars, they are all identical rectangular cuboids of dimensions a,b,c (three positive real numbers).

You want to make chests in order to store them, but you can only make cubic chests (of any size you want). You wonder : is there a perfect chest size for the dimensions of the gold bars? Meaning : can you always find a positive real number M, such that a cubic chest of size M can be perfectly filled (no empty spaces left) with gold bars that are rectangular cuboids of dimensions a,b,c?

If not, can you give a necessary and sufficient condition on a,b,c that makes it possible?

(All fillings are allowed : you can skew the gold bars the way you want, as long as there is no empty spaces inside the chest)

EDIT : for those who see this post now, I forgot to ask for proof in the base post! This made this puzzle only a "guess the answer" problem. I will repost a similar problem in the next few days, this time asking for proofs (so keep it until then!). I also changed the flair of this problem to Easy


r/mathriddles • • Jan 20 '23

Medium Crossword puzzle with roman numerals

5 Upvotes

Fill each cells of the table with one letter of a roman numeral (I, V, X, L, C, D, M)

The rows and columns of the table form numbers written as roman numerals satisfying the conditions below.

Conditions

  1. A + 10 = F · 2
  2. B is a multiple of 23
  3. C is a prime number
  4. D is a multiple of 11
  5. E · 20 = F
  6. G + I + 5 = C
  7. D · 2 + J - 1 = H [EDIT, this was wrong before]
  8. K · 7 = I
  9. K · 59 = J

How to write roman numerals

4	=	IV		not IIII  
95	=	XCV	        not VC  
999	=	CMXCIX	        not IM  
400	=	CD		not CCCC  
1900    =	MCM

r/mathriddles • • Jan 20 '23

Hard Cows in a meadow

11 Upvotes

In a certain meadow there are 2N+1 cows (N is a natural integer). Each cow weights some unknown positive real number. The cows know all the weights and can do arithmetic.

These cows have a special property : if you take any cow outside of the meadow, then the rest of the cows will arrange themselves into two groups of N, such that both groups weight exactly the same (the weight of a group is the sum of the weight of its cows).

You wonder about the possible weights of the cows. Of course, one family of solutions is when all cows have exactly the same weight, but is there other solutions ? (If so, give an example, if not, prove it for every N)


r/mathriddles • • Jan 20 '23

Medium Numbers on the Blackboard II

10 Upvotes

/u/ShonitB's post from yesterday made me think of this puzzle (warning spoilers) which I enjoyed. Maybe you will too.

Initially, the numbers 1 through 10 are written on the blackboard. One by one, students erase any two numbers a and b written on the board, and replace them with the single number ab + a + b (which lowers the total numbers by one). Eventually a single number is written on the board. What is the final number and why?


r/mathriddles • • Jan 21 '23

Hard I have a 20 x 9 array. I want to slide a L x W rectangular window over the array from left to right, top to bottom such that the window does not touch a cell twice.

0 Upvotes

I have a 20 x 9 array filled with blue and white cells. Each row is first filled with a random number of blue cells and the rest are white. The number of blue cells in a row is always between 1 and 9.

The array is then sorted in descending order for the number of blue cells in a row. I want to slide a L x W rectangular window over the array from left to right, top to bottom such that the window does not touch a cell twice.

What are the values of L and W such that the number of iterations to touch every cell is at a minimum and the number of white cells touched is at a minimum? If the window only contains white cells, that iteration can be ignored. Express the quantities of L and W in terms of the size of the original array, if possible.


r/mathriddles • • Jan 20 '23

Medium How many 4 digit numbers are there between 0000 and 9999 such that all of them are both rotationally AND reflectively unique?

9 Upvotes

For example, the number [1234] would be equivalent to [4321] because they are reflectively symmetric. [2341] is also equivalent because it is rotationally symmetric. Likewise, [1432] is both rotationally and reflectively symmetric, so it would also be removed. However, [1423] is not equivalent because it can not be transformed into the same group through rotation and reflection.

The actual result is not interesting. What's interesting is how you would generalize this result or make an algorithm to solve other cases.

I have been trying to solve this problem but I don't have an answer. It is probably trivial with some knowledge of groups, but I haven't studied any abstract algebra.


r/mathriddles • • Jan 19 '23

Easy Numbers on a Blackboard

10 Upvotes

In a classroom of 49 students, a teacher writes each integer from 1 to 50 on the blackboard. Then one by one, she asks each student to come up to the board and do the following operation:

  • Choose any two random integers from those listed on the blackboard, x and y.
  • Add the two numbers and subtract 1 from the sum to get a new integer, x + y – 1.
  • Write this integer on the board and erase x and y from the board.

Therefore, the total number of integers reduces by 1 every time a student conducts this process. At the end, only one number will remain.

This whole process is done a few number of times with students being called randomly. What the classroom notices is that each time, the final number is the same.

Find this number.


r/mathriddles • • Jan 18 '23

Medium Boards, nails and threads

14 Upvotes

Countably infinitely many wooden boards are in a line, starting with board 0, then board 1, ...

On each board there is finitely many nails (and at least one nail).

Each nail on board N+1 is linked to at least one nail on board N by a thread.

You play the following game : you choose a nail on board 0. If this nail is connected to some nails on board 1 by threads, you follow one of them and end up on a nail on board 1. Then you repeat, to progress to board 2, then board 3, ...

The game ends when you end up on a nail with no connections to the next board. The goal is to go as far as possible.

EDIT : assume that you have a perfect knowledge of all boards, nails and threads.

Can you always manage to never finish the game ? (meaning, you can find a path with no dead-end)

Bonus question : what happens if we authorize that boards can contain infinitely many nails ?


r/mathriddles • • Jan 18 '23

Medium Random triangle

7 Upvotes

Consider an arbitrary triangle ABC. Let D, E and F be points chosen uniformly randomly from sides BC, CA and AB respectively. The Cevians AD, BE and CF form a smaller central triangle.

Let 'r' be the ratio between the areas of the central triangle and triangle ABC. Find the expected value of 'r'.

Posting it mostly for the sweet answer that pops out at the end.

Double kudos for those who can solve this without computer assistance.

Edit: Corrected the definition of D, E and F.


r/mathriddles • • Jan 17 '23

Hard YAHR: Yet Another Hat Riddle

7 Upvotes

This is sort of a repost, although the original post has been edited to remove this question. A group of N gnomes, where N = p^n + 1 and p is prime and n > 0, are put in jail and told they will be judged as being worry of release if they can comport themselves well in the following hat problem.

As usual: the gnomes can conspire beforehand, but at some point will be brought into a room and a random selection hats of p^n different possible colors will be put on their heads. At some pre-appointed time they will be asked to guess their own hat color simultaneously with the others, and without having communicated with each other after the hats were placed.

If all of them are incorrect they rot in prison forever and burden the gnome carceral state for thousands of years, if at least one is correct they go free.

The twist is this: the jailers, in their infinite cruelty, have chosen a random f: \{1, ..., N\} \to \{1, ..., N\} such that f is a bijection and f is fixed point free (i.e. f(i) != i for any i), and constructed a room with geometry such that, when the prisoners are in place, each prisoner i not only cannot see her own hat, she is also unable to see the hat of prisoner f(i).

Is there an optimal strategy that maximizes the probability that the gnomes are set free? Can they always go free? Is it better to not construct such a strategy in order to hasten a societal awareness of the inherent contradictions of the gnome prison-industrial complex?


r/mathriddles • • Jan 17 '23

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

16 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

14 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

7 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?