AMC 10 Step by Step

2024 AMC 10B Problem 16

P16-20~5 minPrint

Jerry likes to play with numbers. One day, he wrote all the integers from 11 to 20242024 on the whiteboard. Then he repeatedly chose four numbers on the whiteboard, erased them, and replaced them by either their sum or their product. (For example, Jerry's first step might have been to erase 11 , 22 , 33 , and 55 , and then write either 1111 , their sum, or 3030 , their product, on the whiteboard.) After repeatedly performing this operation, Jerry noticed that all the remaining numbers on the whiteboard were odd. What is the maximum possible number of integers on the whiteboard at that time?

Log in to save your progress.
Show solution without answering

Key insight

Each move removes three numbers, so the count always leaves remainder 2 when divided by 3. The odd numbers never grow past 1012. Only 1010 fits both.

Solution

This is a "maximum" question, so there are two halves: find limits that no strategy can beat, then show a strategy that reaches the limit.

Limit 1: how the count changes.

  1. Each move erases 44 numbers and writes 11, so the board loses exactly 33 numbers every time.
  2. The board starts with 20242024 numbers, and 2024=3⋅674+22024 = 3 \cdot 674 + 2. Taking away 33 at a time, the count always leaves remainder 22 when divided by 33: 2024,2021,2018,…2024, 2021, 2018, \ldots
  3. Check the choices: 1010=3⋅336+21010 = 3 \cdot 336 + 2 and 1013=3⋅337+21013 = 3 \cdot 337 + 2 fit. 10111011, 10121012 and 10141014 do not.

Limit 2: the number of odd numbers never goes up.

  1. Recall the rules: a sum is odd only when it has an odd number of odd terms, and a product is odd only when every factor is odd.
  2. So a move can create an odd number only if at least one of the four erased numbers was odd. A move erases at least one odd and writes at most one odd, so the number of odds on the board never goes up.
  3. From 11 to 20242024 there are 10121012 odd numbers. At the end everything is odd, so there are at most 10121012 numbers. That rules out 10131013.

So the answer is at most 10101010.

Reaching 10101010.

  1. Take three even numbers and one odd number and replace them with their sum. Even ++ even ++ even ++ odd is odd. This removes three evens and keeps the number of odds at 10121012.
  2. There are 10121012 evens. Doing step 7 337337 times removes 3⋅337=10113 \cdot 337 = 1011 evens, leaving 11 even.
  3. Now take that last even number with three odd numbers and replace them with their sum: even ++ odd ++ odd ++ odd is odd. This uses up three odds and writes one, so 1012−3+1=10101012 - 3 + 1 = 1010 odds remain.
  4. The board now holds 10101010 numbers, all odd.

The limit is 10101010 and it can be reached.

The answer is (A) 1010\boxed{\textbf{(A)}\ 1010}.

Why this works

For a process that repeats a move, look for things the move cannot change (the remainder of the count when divided by 33) or can only change in one direction (the number of odds, which never grows). Each gives a limit, and together they leave a single possible answer. Then build an actual sequence of moves that reaches it.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Two observations bound the answer.

Count mod 3. Every operation erases four numbers and writes one, a net loss of three. Starting from 2024≡2(mod3)2024 \equiv 2 \pmod 3, the count is always 2(mod3)2 \pmod 3. Among the choices only 10101010 and 10131013 qualify.

Odd numbers never increase. An operation produces at most one odd number, and to produce an odd result it must consume at least one odd input (a sum is odd only if an odd number of its terms are odd; a product is odd only if all four are). So the number of odd numbers on the board never goes up. It starts at 10121012, so the final count is at most 10121012, ruling out 10131013.

Construction for 10101010. Repeatedly replace three evens and one odd by their sum, which is odd; this keeps the odd count at 10121012 and removes three evens each time. After 337337 such moves, 10111011 evens are gone and one even remains. Absorb it with the sum of that even and three odds, which is odd. The board now holds 1012−2=10101012 - 2 = 1010 numbers, all odd.

The answer is (A) 1010\boxed{\textbf{(A)}\ 1010}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.