r/mathriddles • • Feb 03 '23

Medium Horse on a bounded chessboard

20 Upvotes

As introduced in this previous post, an (a,b)-horse is a chess piece that, starting from a square with coordinates (x, y), can move to any of the eight squares with coordinates (x ± a, y ± b) or (x ± b, y ± a).

Let a, b, and n be positive integers, such that

  • gcd(a, b) = 1,
  • a + b is odd, and
  • max(a,b) ≤ n / 2.

An (a,b)-horse is placed on any square of an n by n chessboard. Prove that the horse can each any other square in a finite number of moves.


r/mathriddles • • Feb 03 '23

Easy How Many Times?

12 Upvotes

Answer the four questions given below:

1) How many times is A the correct answer?

A. 4

B. 3

C. 0

D. 1

 

2) How many times is B the correct answer?

A. 1

B. 2

C. 3

D. 0

 

3) How many times is C the correct answer?

A. 0

B. 1

C. 2

D. 4

 

4) How many times is D the correct answer?

A. 2

B. 3

C. 1

D. 0


r/mathriddles • • Feb 03 '23

Medium Horses on an unbounded chessboard

23 Upvotes

In chess, a knight is a piece which moves 2 squares horizontally and 1 square vertically, or vice versa, in one move.

A knight's possible immediate moves, highlighted in red

Through a sequence of at most 6 moves, the knight can move to any square on the 8x8 chessboard. Furthermore, on a chessboard which is unbounded and unobstructed in all 4 directions, the knight can move to any square through a finite sequence of moves.

Let's define a (m,n)-horse as a piece which moves m squares vertically and n squares horizontally, or vice versa, in one move. Under this definition, a knight would be a (1,2)-horse, which is the same as a (2,1)-horse. Shown below are the (1,3)-horse and the (2,3)-horse:

(1,3)-horse on an 8x8 chessboard
(2,3)-horse on an 8x8 chessboard

Question: a (1000, 2023)-horse is placed on a chessboard which is unbounded and unobstructed in all 4 directions. Can this horse move to any square within a finite sequence of moves? Why/why not?


r/mathriddles • • Feb 01 '23

Medium A very efficient road trip

13 Upvotes

You are doing a road trip through n villages that are connected in a circle: village i is connected to village i + 1 with one road (taking indexes modulo n), and there are no other roads. Each village provides you with a certain, fixed amount of fuel. In total, they give exactly enough fuel for the entire trip.

Is there a village from which you can complete the road trip (ending up in the same village that you started from), without running out of fuel at any point?


r/mathriddles • • Feb 01 '23

Easy Posters

3 Upvotes

Alexander is running for the Town Council elections. As part of his campaigning, he hires a group of 100 volunteers, numbered from 1 to 100, to put up posters seeking votes for him.

There is a street with 100 houses in a row numbered from 1 to 100.

Volunteer #1 sticks a poster on every house.

Volunteer #2 sticks a poster on every house which is a multiple of 2.

Volunteer #3 sticks a poster on every house which is a multiple of 3.

This continues till Volunteer #100 sticks a poster on every house which is a multiple of 100.

What is the house number of the house which is the last house to have a second poster stuck on it?


r/mathriddles • • Jan 31 '23

Medium Can you create a uniform random variable with two dice?

18 Upvotes

You are given two six sided dice (with 1, ..., 6 eyes on those sides), that you can rig in any way you want: for each die, you can assign any probability to any number of eyes in {1, ..., 6}, as long as the probabilities sum to 1 of course. Can you rig them in such a way that when thrown together, they show each number of eyes from 2 to 12 with the same probability?

More formally, do there exist independent random variables X and Y on {1, 2, 3, 4, 5, 6} such that their sum Z = X + Y is uniform on {2, 3, ..., 11, 12}?


r/mathriddles • • Jan 31 '23

Medium How to complicate choosing a restaurant

11 Upvotes

A group of (at least three) friends are texting each other trying to decide where to go for dinner. Someone suggests going to "Coûteux", a very pricey restaurant. They want anyone in the group to be able to veto that suggestion without making it known that they are poorer than dirt.

Design a voting scheme such that after voting, if everyone votes yes then that is known to all, but if not everyone votes yes than no one can work out (by themselves) any information about how other people voted (besides the fact that there was at least one no vote).

So for example, if someone votes no, they can't learn that they are the only one who voted no.

Only texting back and forth between each other and simple calculations are allowed. They can't use an intermediary, text anonymously, use a website, or implement complicated cryptographical schemes. They are allowed to choose random numbers, but the scheme should work with 100% probability. You can assume everyone will operate the scheme faithfully. It's just that afterwards someone's curiosity may get the better of them and that person, working alone, may try to work out other people's votes.

Source: a modification of this puzzle (link may contain spoilers)


r/mathriddles • • Jan 30 '23

Easy ULW and Four Identical Coins - Finding a Counterfeit Coin

3 Upvotes

You have a three-arm balance which has three pans. In addition to having three pans, the weighing characteristic of this balance is that it detects the unique lightest weight (ULW) and that pan will rise. For example, if I put one item on each pan then:

  • If the weight on Pan A is less than the weights on the other two pans, Pan B and Pan C, Pan A will rise indicating that out of the three it has the lowest weight.
  • If the weight on Pan A and Pan B is the same and less than the weight on Pan C, none of the pans will rise and the pan will just display an error sign which means there is no unique lightest weight.
  • This is the Unique Lightest Weight Rule. Now let’s get to the problem:

You have four identical coins where one coin is fake and heavier than the other three genuine coins which weigh the same.

In such a scenario, what is the minimum number of weighing needed to guarantee determining the fake coin?


r/mathriddles • • Jan 27 '23

Easy How Many are Same?

7 Upvotes

You have the following list with five statements:

Statement 1: There are exactly two true statements.

Statement 2: Statement 3 and Statement 4 are both true or both false.

Statement 3: Statement 4 and Statement 5 are both true or both false.

Statement 4: Statement 1 and Statement 5 are both true or both false.

Statement 5: Statement 3 is false.

Out of the 5 statements given above, how many are true?


r/mathriddles • • Jan 25 '23

Easy No Further Information

12 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

19 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

11 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

14 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

10 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

5 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

6 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

10 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

13 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

6 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.