Maths Olympiad Prep

Library / /393 of 1394

, 2023

Combinatorics Difficulty 5.1 AIME, harder Find the answer United States

Problem:

The number 770770 is written on a blackboard. Melody repeatedly performs moves, where a move consists of subtracting either 4040 or 4141 from the number on the board. She performs moves until the number is not positive, and then she stops. Let NN be the number of sequences of moves that Melody could perform. Suppose N=a2bN = a \cdot 2^{b} where aa is an odd positive integer and bb is a nonnegative integer. Compute 100a+b100a + b.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:

Notice that if we use the 4141 move nine times or less, we will have to make a total of 77040=20\left\lceil\frac{770}{40}\right\rceil = 20 moves, and if we use it ten times or more, we will have to make a total of 77040=19\left\lfloor\frac{770}{40}\right\rfloor = 19 moves. So, doing casework on the number of 4040s we use gives
(190)+(191)+(192)++(199)19 moves+(2010)2+(2011)+(2012)++(2020)20 moves. \underbrace{\binom{19}{0} + \binom{19}{1} + \binom{19}{2} + \cdots + \binom{19}{9}}_{19 \text{ moves}} + \underbrace{\frac{\binom{20}{10}}{2} + \binom{20}{11} + \binom{20}{12} + \cdots + \binom{20}{20}}_{20 \text{ moves}}.
Using the row sums of Pascal's triangle we have this sum equal to 2192+2202=3218\frac{2^{19}}{2} + \frac{2^{20}}{2} = 3 \cdot 2^{18}. The answer is 318318.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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