AMC 10 Step by Step

2025 AMC 10B Problem 2

P1-10~2 minPrint

Jerry wrote down the ones digit of each of the first 20252025 positive squares: 1,4,9,6,5,6,…1,4,9,6,5,6,\dots . What is the sum of all the numbers Jerry wrote down?

Log in to save your progress.
Show solution without answering

Key insight

The last digit of a square depends only on the last digit of the number, so the list repeats every ten terms, and each block of ten adds to 45.

Solution

  1. Write out the first ten. Square 11 through 1010 and keep only the ones digit:
nn12345678910
ones digit of n2n^21496569410

These add up to 1+4+9+6+5+6+9+4+1+0=451+4+9+6+5+6+9+4+1+0 = 45.

  1. Why the list repeats. When you multiply, the ones digit of the answer comes only from the ones digits of the numbers. For example, 132=16913^2 = 169 ends in 99, just like 32=93^2 = 9. So squares of 1111 to 2020 end in the same ten digits again, and so do 2121 to 3030, and so on. Every block of ten adds to 4545.

3. Count the full blocks. 2025=202×10+52025 = 202 \times 10 + 5. So 11 to 20202020 makes 202202 full blocks, worth
202×45=9090.202 \times 45 = 9090.

  1. Add the leftovers. The last five numbers are 2021,2022,2023,2024,20252021, 2022, 2023, 2024, 2025. They end in 1,2,3,4,51, 2, 3, 4, 5, so their squares end in 1,4,9,6,51, 4, 9, 6, 5, which add to 2525.
  1. The total is 9090+25=91159090 + 25 = 9115.

The answer is (D) 9115\boxed{\textbf{(D)}\ 9115}.

Why this works

A last digit never cares about the digits in front of it, so a sum of last digits over a huge range is really one short block repeated. The recipe: find how often the pattern repeats, add one block, multiply by the number of full blocks, and finish the partial block by hand. The partial block at the end is the part people forget.

Concise solution

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

The ones digit of n2n^2 is determined by the ones digit of nn, so Jerry's list repeats with period 1010. Squaring n=1,2,…,10n = 1, 2, \dots, 10 gives ones digits
1, 4, 9, 6, 5, 6, 9, 4, 1, 0,1,\ 4,\ 9,\ 6,\ 5,\ 6,\ 9,\ 4,\ 1,\ 0,
which sum to 4545.

Now split 2025=202⋅10+52025 = 202 \cdot 10 + 5. The squares of 11 through 20202020 form 202202 complete blocks, contributing
202⋅45=9090.202 \cdot 45 = 9090.
The remaining terms come from n=2021,…,2025n = 2021, \dots, 2025, whose ones digits are 1,2,3,4,51, 2, 3, 4, 5; their squares end in 1,4,9,6,51, 4, 9, 6, 5, a further 2525.

The total is 9090+25=91159090 + 25 = 9115.

The answer is (D) 9115\boxed{\textbf{(D)}\ 9115}.

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.