AMC 10 Step by Step

2006 AMC 10B Problem 11

P11-15~3 minPrint

What is the tens digit in the sum 7!+8!+9!+...+2006!7!+8!+9!+...+2006!

Log in to save your progress.
Show solution without answering

Key insight

Every factorial from 10! onward ends in 00, so it cannot change the tens digit. Only 7! + 8! + 9! matters.

Solution

1. The tens digit of a sum only depends on the last two digits of each number. So look for terms that end in 0000 and ignore them.
2. 10!=1⋅2⋅3⋯9⋅1010! = 1 \cdot 2 \cdot 3 \cdots 9 \cdot 10 contains the factor 1010 and also the factors 22 and 55, which make another 1010. So 10!10! is a multiple of 100100 and ends in 0000.
3. Every later factorial, like 11!=11⋅10!11! = 11 \cdot 10!, is a multiple of 10!10!, so it also ends in 0000. All the terms from 10!10! to 2006!2006! add nothing to the last two digits.
4. That leaves only three terms. Work them out:
7!=5040,8!=8⋅5040=40320,9!=9⋅40320=362880.7! = 5040,\qquad 8! = 8 \cdot 5040 = 40320,\qquad 9! = 9 \cdot 40320 = 362880.
5. Only the last two digits matter: 40+20+80=14040 + 20 + 80 = 140, which ends in 4040. So the whole sum ends in 4040.

The tens digit is 44.

The answer is (C) 4\boxed{\textbf{(C)}\ 4}.

Why this works

A question about the last digit or the tens digit only cares about the last one or two digits of each number. Factorials quickly pick up lots of factors of 22 and 55, so from some point on they all end in zeros and drop out. That turns a sum with two thousand terms into a sum of just a few.

Alternative approach

Add the three numbers in full: 5040+40320+362880=4082405040 + 40320 + 362880 = 408240. Its tens digit is 44.

Concise solution

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

The tens digit depends only on the sum modulo 100100.

For n≥10n \ge 10, the product n!n! includes the factors 55, 1010 (and plenty of 22s), so 100∣n!100 \mid n!. Every term from 10!10! onward contributes 00 modulo 100100 and can be discarded.

That leaves 7!+8!+9!7! + 8! + 9!. Rather than computing the large numbers, factor out 7!=50407! = 5040:
7! (1+8+72)=5040⋅81.7!\,(1 + 8 + 72) = 5040 \cdot 81.
Modulo 100100, 5040≡405040 \equiv 40 and 81≡8181 \equiv 81, so the sum is ≡40⋅81=3240≡40(mod100)\equiv 40 \cdot 81 = 3240 \equiv 40 \pmod{100}.

The last two digits are 4040, so the tens digit is 44.

The answer is (C) 4\boxed{\textbf{(C)}\ 4}.

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.