2022 AMC 12A Problem 23

Below is the professionally curated solution for Problem 23 of the 2022 AMC 12A, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2022 AMC 12A solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:least common multipleprime factorizationmodular arithmetic

Difficulty rating: 2520

23.

Let hnh_n and knk_n be the unique relatively prime positive integers such that

11+12+13++1n=hnkn.\frac11+\frac12+\frac13+\cdots+\frac1n=\frac{h_n}{k_n}.

Let LnL_n denote the least common multiple of the numbers 1,2,3,,n.1,2,3,\ldots,n. For how many integers nn with 1n221\le n\le22 is kn<Ln?k_n\lt L_n?

00

33

77

88

1010

Solution:

Always knLn,k_n\mid L_n, so kn<Lnk_n\lt L_n exactly when some prime pp divides both LnL_n and the numerator N=k=1nLnkN=\sum_{k=1}^n \tfrac{L_n}{k} (i.e. a prime cancels).

For a prime pp with maximal power pan,p^a\le n, only the terms with vp(k)=av_p(k)=a keep pp out of Ln/k;L_n/k; all others are divisible by p.p. So pp cancels iff vp(k)=aLnk0(modp).\sum_{v_p(k)=a}\tfrac{L_n}{k}\equiv0\pmod p.

Checking each n,n, cancellation occurs precisely for n=6,7,8,18,19,20,21,22,n=6,7,8,18,19,20,21,22, which is 88 values.

Thus, the correct answer is D.

Problem 23 in Other Years