Define as the least common multiple of all the integers from to inclusive. There is a unique integer such that What is the remainder when is divided by ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Multiply through by L17. Then h is L17/1 + L17/2 + ... + L17/17, and every term except the last is a multiple of 17.
Solution
Step 1: build . The least common multiple of to takes the highest power of each prime that is at most : , , and . So
Step 2: find . Multiply the equation by :
Each term is a whole number, because every from to divides .
Step 3: throw away the terms that are multiples of 17. For , the number has no factor of , so dividing by leaves the in place. Those terms are all multiples of and leave remainder . Only the last term matters:
This one is not a multiple of , because has only one .
Step 4: find its remainder when divided by 17. Multiply one factor at a time, keeping only the remainder after each step. (This is allowed: the part that is a multiple of stays a multiple of after multiplying.)
| Multiply by | Running product | Remainder after dividing by 17 |
|---|---|---|
| start | ||
So leaves remainder when divided by .
The answer is .
Why this works
When fractions are put over a common denominator , the numerators are divided by each denominator. If a prime appears in exactly once, every term except the one that divides it away is still a multiple of that prime. So look for the single term that loses the prime; all the others drop out of the remainder.
The trap
Trying to add the fractions or compute h exactly, or thinking the last term L17/17 is also a multiple of 17 (17 appears in L17 only once).
Concise solution
Taking the highest power of each prime up to ,
Multiplying the equation by gives
and every term is an integer because each divides .
Reduce modulo . For , the factor of survives division by , so . Only the term matters:
Multiply step by step, reducing as we go: ; ; ; ; ; .
So . The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic
- Introduction to Number Theory, Chapter 3: Multiples and Divisors (§3.3, §3.4, §3.7)
- Introduction to Number Theory, Chapter 11: Decimals and Fractions
- Introduction to Number Theory, Chapter 10: Units Digits
Techniques
Set up the equation/formula and compute; no special trick needed