Maths Olympiad Prep

Track / Stage 5 / 120 of 400 #1200 of 2444

Problem 1200

AIME late
Combinatorics Difficulty 5.3 Prove it Harvard-MIT Mathematics Tournament · United States

John needs to pay 2010 dollars for his dinner. He has an unlimited supply of 2, 5, and 10 dollar notes. In how many ways can he pay?

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Solution:

Let the number of 2, 5, and 10 dollar notes John can use be xx, yy, and zz respectively. We wish to find the number of nonnegative integer solutions to 2x+5y+10z=20102x + 5y + 10z = 2010.

Consider this equation modulo 22. Because 2x2x, 10z10z, and 20102010 are even, 5y5y must also be even, so yy must be even.

Now consider the equation modulo 55. Because 5y5y, 10z10z, and 20102010 are divisible by 55, 2x2x must also be divisible by 55, so xx must be divisible by 55.

So both 2x2x and 5y5y are divisible by 1010. So the equation is equivalent to 10x+10y+10z=201010x' + 10y' + 10z = 2010, or x+y+z=201x' + y' + z = 201, with xx', yy', and zz nonnegative integers.

There is a well-known bijection between solutions of this equation and picking 2 of 203 balls in a row on the table (explained in further detail below), so there are (2032)=20503\binom{203}{2} = 20503 ways.

The bijection between solutions of x+y+z=201x' + y' + z = 201 and arrangements of 203 balls in a row is as follows. Given a solution of the equation, we put xx' white balls in a row, then a black ball, then yy' white balls, then a black ball, then zz white balls. This is like having 203 balls in a row on a table and picking two of them to be black. To go from an arrangement of balls to a solution of the equation, we just read off xx', yy', and zz from the number of white balls in a row. There are (2032)\binom{203}{2} ways to choose 2 of 203 balls to be black, so there are (2032)\binom{203}{2} solutions to x+y+z=201x' + y' + z = 201.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.