AMC 10 · 2022 · #23

Grade 11 number-theory
lcmp-adic-valuationmodular-arithmeticp-adic-inverseprime-numbers identify-subproblemscaseworksystematic-enumeration ↑ Prerequisites: lcmmodular-arithmetic
📏 Long solution 💡 4 insights
Problem
Add the reciprocals of one through n and reduce to lowest terms; that gives a denominator. Separately there is the least common multiple of one through n. Count how many n from 1 to 22 have the reduced denominator strictly smaller than that least common multiple.

Pick an answer.

(A)
0
(B)
3
(C)
7
(D)
8
(E)
10
How to solve
Strategy Organize Information in More Ways

Computing 22 harmonic fractions and reducing each one is brutal by hand, so I reorganize the information instead. First I write the whole sum over the single denominator L_n; then k_n < L_n says exactly that the numerator and L_n share a prime factor. That converts one hard fraction question into a divisibility question I can attack one prime at a time. For a fixed prime p, almost every term of the numerator is a multiple of p and dies modulo p, leaving a sum of at most p-1 modular inverses. That short sum is easy to evaluate, and one clean pattern in it (M=p-1 always gives zero) does most of the work. Finally I list the primes up to 22, read off which n each one catches, and take the union.

1STEP 1

Put the sum over one denominator

Put the whole sum over the lcm.

1/1+…+1/n=N_n/L_n, N_n=Σ_j=1ⁿL_n/j, k_n=L_n/gcd(N_n,L_n)
2STEP 2

Fix one prime

Fix one prime and its exponent.

p^e ≤ n < p^e+1, v_p(L_n)=e, v_p (L_n/j)=e-v_p(j)
3STEP 3

Most terms vanish

Most terms are divisible by that prime.

N_n≡Σ_ j ≤ n, v_p(j)=eL_n/j (mod p)
4STEP 4

A short inverse sum survives

What survives is a short sum of inverses.

N_n≡ A S_M (mod p), S_M=Σ_m=1^Mm⁻¹, M=⌊n/p^e⌋ ≤ p-1; p ∣ N_n ⇔ S_M≡ 0 (mod p)
5STEP 5

Two decisive facts

Two facts decide most cases.

S₁=1≢ 0; S_p-1≡ 1+2+…+(p-1)=(p(p-1))/2≡ 0 (mod p) (p odd)
6STEP 6

Sweep the primes

Sweep every prime up to twenty-two.

p=3: n∈{6,7,8}∪{18,19,20,21,22}; p=5: n∈{20,21,22}; p=2,7,11,13,17,19: no n
7STEP 7

Union and count

The union has size 8.

{6,7,8}∪{18,19,20,21,22}∪{20,21,22}={6,7,8,18,19,20,21,22}, | · |=8
Answer
8
Two hand checks pin the boundary. For n=5, L₅=60 and N₅=60+30+20+15+12=137, which is prime to 60, so k₅=60=L₅ and 5 is correctly excluded. For n=6, L₆=60 and N₆=60+30+20+15+12+10=147=3 · 49, which shares the factor 3 with 60, so 147/60=49/20 and k₆=20 < 60 — exactly the p=3, M=2 case the argument predicts. This also kills choice (A). The ratios L_n/k_n across the eight winners are 3,3,3 for n=6,7,8, then 3,3 for n=18,19, then 15 for n=20 and 45 for n=21,22 — built only from 3s and 5s, never even, which matches both the prime sweep and the proof that 2 can never cancel.
💡Key takeaway

Put the whole sum over one denominator, then ask each prime by itself whether it divides the top — a monstrous fraction turns into a few tiny sums on a clock.

  • Put the whole sum over L_n
  • Fix one prime and its exponent
  • Most terms vanish modulo p
  • What survives is a short inverse sum
  • Two facts that decide most cases
  • Sweep the primes up to 22
  • Union the lists and count