What is the remainder when is divided by ?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Multiply the divisor by 2^101 - 2^51 + 1 and you get exactly 2^202 + 1. So 2^202 + 202 is a multiple of the divisor plus 201.
Solution
1. Name the pieces. Let . Then and the divisor is .
2. Why look for a product? If plus a small number turns out to be a multiple of , the remainder is easy. The middle term is the clue: .
3. Multiply by its "partner" with the middle sign flipped. Group as and and use (sum)(difference) = difference of squares:
4. So is a multiple of .
5. Split the number we want.
The first part is a multiple of , so the remainder comes from .
6. Check the size. is enormous (bigger than ), so is already smaller than . The remainder is exactly .
The answer is .
Why this works
A divisor that looks like , where the something squared equals , comes from factoring with a difference of squares. Once you know the divisor goes evenly into , the question becomes "what is left after taking away that multiple?", which is just . In the language of remainders: , meaning is one less than a multiple of .
Alternative approach
Test the pattern on small numbers. With : the divisor , and . With : the divisor , and . The pattern holds, and our problem is the same with .
The trap
Trying to find a repeating pattern in powers of 2 divided by this huge number, or forgetting to check that 201 is smaller than the divisor.
Concise solution
Let . The middle term satisfies , which suggests the difference-of-squares pairing
So divides , which means . Then
Since , the remainder is exactly .
The answer is .
Review in the AoPS books
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.2, §11.3, §11.5)
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic
- Intermediate Algebra, Chapter 20: Some Advanced Strategies (§20.2)
- Introduction to Algebra, Chapter 22: Special Manipulations
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Substitute to simplify (u = x+1/x, shifting, scaling)