What is the remainder when is divided by 8?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Divided by 8, powers of 3 leave remainders 1, 3, 1, 3, and so on. Each pair adds to 4, and there are 1005 pairs.
Solution
The numbers are huge, but only their remainders when divided by matter. Start with the first few powers of and look for a pattern.
- List the first few powers and their remainders:
| Power | |||||
|---|---|---|---|---|---|
| Value | |||||
| Remainder when divided by |
- The remainders repeat The reason: multiplying by (that is, by twice) leaves the remainder unchanged, because is .
- Count the terms. The exponents go from to , so there are terms.
- Group them in pairs: . That is pairs.
- Each pair has remainders .
- So the whole sum has the same remainder as . Since , the remainder is .
- A quicker way to see step 6: two 's make , which leaves remainder . So fours leave the same remainder as one , because is odd.
The answer is .
Why this works
Remainders of powers always repeat after a while, and here they repeat every steps. That lets you replace a giant sum by a count of repeating blocks. Be careful counting terms when the exponents start at : from to is terms, not .
Alternative approach
The sum is a geometric series, equal to . Look at remainders when dividing by (we will divide by at the end): , so powers of repeat every steps when divided by . Since , has the same remainder as . So leaves remainder when divided by , which means it equals for some whole number . Halving gives , remainder .
The trap
Counting 2009 terms instead of 2010, forgetting that the sum starts at 3 to the power 0.
Concise solution
Since , the powers of modulo alternate: even exponents give , odd exponents give .
The sum has exponents through , which is terms. Group them into consecutive pairs ; each pair is , and there are pairs. The total is therefore
because . Equivalently, is odd, and an odd number of 's is .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic
- Introduction to Algebra, Chapter 21: Sequences & Series (§21.1, §21.2, §21.3, §21.4)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.1)
- Introduction to Number Theory, Chapter 10: Units Digits
Techniques
Compute small cases, spot the pattern, generalize