Let be the -digit number that is formed by writing the integers from to in order, one after the other. What is the remainder when is divided by ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Split 45 = 9 times 5: the last digit gives N = 4 mod 5, and the digit sum equals 1 + ... + 44 = 990, divisible by 9.
Solution
Since with , find modulo and modulo separately.
Mod : only the last digit matters, and ends in . So .
Mod : a number is congruent to its digit sum mod . The digits of are the digits of , and each integer is congruent to its own digit sum mod . Hence
because is a multiple of .
Now find the residue mod that is and . The multiples of below are ; their residues mod are . Only works.
The answer is .
Why this works
A modulus that factors into coprime pieces should be attacked one piece at a time: is controlled by the last digit and by the digit sum. The digit-sum step hides a second trick: concatenating numbers adds their digit sums, so the total digit sum is congruent to mod without touching individual digits.
Alternative approach
Use the answer choices: the remainder must be a multiple of (only and qualify) and must be , which eliminates . Alternatively, check the digit sum directly: the one-digit numbers contribute , the tens digits of to contribute , and the units digits contribute ; total .
The trap
Computing the digit sum digit by digit (and slipping) instead of noticing that the digit sum of a block equals that block's value mod 9, so the total is 1 + 2 + ... + 44 mod 9.
Common mistakes
- Computing the digit sum digit by digit (and slipping) instead of noticing that the digit sum of a block equals that block's value mod 9, so the total is 1 + 2 + ... + 44 mod 9.
- Answering (choice B) from the mod- residue alone, or by mishandling the mod- check on multiples of .
Techniques
Use the answer choices (mod checks, size, form) to eliminate or select · Set up the equation/formula and compute; no special trick needed