1996 AMC 12 Problem 12

Attempt Problem 12 of the 1996 AMC 12 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 1996 AMC 12 solutions, or check the answer key.

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

12.

A function ff from the integers to the integers is defined as follows: f(n)={n+3if n is odd,n2if n is even. f(n)= \begin{cases} n+3 & \text{if \(n\) is odd},\\ \frac{n}{2} & \text{if \(n\) is even}. \end{cases} Suppose kk is odd and f(f(f(k)))=27.f(f(f(k)))=27. What is the sum of the digits of k?k?
33
66
99
1212
1515
Answer: B
Concepts:piecewise functionsparity
Small hint:
Because kk is odd, the first iterate is k+3k+3, which is even
Big hint:
Work backward from 2727, checking the parity required by each inverse branch
Solution:
Since kk is odd, f(k)=k+3f(k)=k+3 is even, so f(f(k))=k+32.f(f(k))=\frac{k+3}{2}. If this value were odd, adding 33 could not produce 2727 because that would require the value 24.24. Therefore it is even and is halved to 27,27, so k+32=54.\frac{k+3}{2}=54. Hence k=105,k=105, whose digits sum to 6.6. 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.