2023 AMC 12A Problem 22

Attempt Problem 22 of the 2023 AMC 12A below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2023 AMC 12A solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

22.

Let ff be the unique function defined on the positive integers such that ∑d∣nd⋅f(nd)=1 \sum_{d\mid n} d\cdot f\left(\frac{n}{d}\right)=1 for all positive integers n,n, where the sum is taken over all positive divisors of n.n. What is f(2023)?f(2023)?
−1536-1536
9696
108108
116116
144144
Answer: B
Concepts:prime factorizationrecursion
Small hint:
The relation determines ff recursively; ff turns out to be multiplicative
Big hint:
Compute f(1)=1,f(1)=1, f(p)=1−p,f(p)=1-p, and f(p2)=1−p;f(p^2)=1-p; here 2023=7⋅1722023=7\cdot 17^2
Solution:
Setting n=1n=1 gives f(1)=1.f(1)=1. For a prime p,p, n=pn=p gives f(p)+p⋅f(1)=1,f(p)+p\cdot f(1)=1, so f(p)=1−p.f(p)=1-p. For n=p2,n=p^2, f(p2)+p f(p)+p2f(1)=1f(p^2)+p\,f(p)+p^2 f(1)=1 gives f(p2)=1−p.f(p^2)=1-p.
Since the defining relation is a Dirichlet convolution of multiplicative functions, ff is multiplicative. With 2023=7⋅172,2023=7\cdot 17^2, f(2023)=f(7)⋅f(172)=(1−7)(1−17)=(−6)(−16)=96. \begin{gathered} f(2023)=f(7)\cdot f(17^2)\\ {}=(1-7)(1-17)\\ {}=(-6)(-16)\\ {}=96. \end{gathered}
Thus, the correct answer is B.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.