AMC 10 · 2016 · #25

Grade 9 number-theory
floor-functionperfect-squaresplace-valuedigit-sum easier-related-problempattern-recognition ↑ Prerequisites: floor-functionperfect-squares
📏 Long solution 💡 4 insights
Problem
Squares are written and their trailing digits erased until two entries jump apart. Add the digits of a long total.

Pick an answer.

(A)
7986
(B)
8002
(C)
8030
(D)
8048
(E)
8064
How to solve
Strategy Introduce a Variable

The blackboard game is really one formula, b(x)=⌊ x²/10^k ⌋, so tool #4 (Introduce a Variable) is the engine twice over: first to name b(x), then to recenter with x = 5 · 10^k-1+m, which is the move that makes everything collapse. Tool #9 (Solve an Easier Related Problem) supplies the picture: play the k=2 game by hand, watch where it stumbles, and the mechanism for general k is visible. Tool #14 (Extreme Principle) does the two minimality arguments the problem hinges on — the earliest x at which a jump of 2 is even possible, and then the exact first x where it happens. Tool #5 (Look for a Pattern) finishes: the 1008 values of f stack into two repeating digit strings, and the digit sum falls out of a column count.

1STEP 1

Turn erasing into floor division

Erasing is a plain division with rounding.

b(x)=⌊ x²/10²ⁿ ⌋, x = 10ⁿ, 10ⁿ+1, 10ⁿ+2, …, b(10ⁿ)=1
2STEP 2

The board is an unbroken run

The board records an unbroken run.

f(k) = B+1, B = b(x^-1), x^ = min{x : b(x)-b(x-1) ≥ 2}
3STEP 3

Play the k=2 game by hand

The smallest case is played by hand.

59² = 3481 → 34, 60² = 3600 → 36, f(2) = 35
4STEP 4

A jump needs 2x-1 > 10²ⁿ

A jump needs the gap to exceed the divisor.

b(x)-b(x-1) ≥ 2 ⟹ 2x-1 > 10²ⁿ ⟹ x ≥ 5 · 10²ⁿ⁻¹+1
5STEP 5

Recenter at 5 · 10²ⁿ⁻¹

Recentring makes the formula clean.

x = 5 · 10²ⁿ⁻¹+m ⟹ b(x) = 25 · 10²ⁿ⁻² + m + ⌊ m²/10²ⁿ ⌋
6STEP 6

The first spill-over gives f(2n)

The first spill-over names the missing value.

f(2n) = 25 · 10²ⁿ⁻²+10ⁿ; f(2)=35, f(4)=2600, f(6)=251000, f(8)=25010000
7STEP 7

Split the total into two stacks

The long total splits into two stacks.

S = 2525…25₁₀₀₈ copies of 25 + 111…110₁₀₀₈ ones, then 0
8STEP 8

Add the columns and total the digits

Adding the columns gives 8064, choice (E).

7056 + 1008 = 8064 → (E)
Answer
8064
Several independent anchors agree. The formula reproduces the one case the problem supplies indirectly, and simulating the k=2 game outright (squares 2500, 2601, …, 3481, 3600, board 25, 26, …, 34, 36) confirms 35 is the first number skipped. Simulating k=4 from scratch puts the first jump at 5099² → 5100², board 2599 → 2601, so f(4) = 2600, exactly what 25 · 10²+10² predicts; k=6 gives 251000 and k=8 gives 25010000, again matching. There is also a shape check: each f(2n) has digit sum 2+5+1 = 8 (for small n the 1 lands on the 2 or the 5, giving 35 and 2600, still summing to 8), and since the grand total adds without carrying, the digit sum should be 1008 × 8 = 8064. Finally, being a multiple of 8 rules out 7986, 8002, and 8030 at a glance, and between the two survivors the count of 1008 terms picks 8064 over 8048.
💡Key takeaway

Erasing k digits is dividing by 10^k, and past x = 5 · 10^k-1 the board just counts upward until the leftover square finally fills a whole 10^k — that one moment is the number it skips, and stacking all 1008 of those numbers adds column by column with nothing carrying.

  • Turn erasing into floor division
  • The board is an unbroken run
  • Play the k=2 game by hand
  • A jump needs 2x-1 > 10²ⁿ
  • Recenter at 5 · 10²ⁿ⁻¹
  • The first spill-over gives f(2n)
  • Split the total into two stacks
  • Add the columns and total the digits