1987 AMC 12 Problem 29

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

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

29.

Consider the sequence of numbers defined recursively by t1=1t_1=1 and for n>1n\gt1 by tn=1+tn2t_n=1+t_{\frac{n}{2}} when nn is even and by tn=1tn−1t_n=\frac{1}{t_{n-1}} when nn is odd. Given that tn=1987,t_n=\frac{19}{87}, the sum of the digits of nn is
1515
1717
1919
2121
2323
Answer: A
Concepts:recursive sequenceinverse recursionrational numbers
Small hint:
Values greater than 11 come from even indices; values between 00 and 11 come from odd indices
Big hint:
Reverse the recursion by subtracting 11 from values above 11 and taking reciprocals of values below 11
Solution:
Let N(r)N(r) be the index at which the value rr occurs. Reversing the recursion gives N(r)=2N(r−1)N(r)=2N(r-1) for r>1,r\gt1, and N(r)=N(1r)+1N(r)=N(\frac{1}{r})+1 for 0<r<1.0\lt r\lt1.
Starting with N(1)=1,N(1)=1, repeated use gives N(2)=2,N(2)=2, N(12)=3,N(\frac{1}{2})=3, N(32)=6,N(\frac{3}{2})=6, and N(23)=7.N(\frac{2}{3})=7. Continuing gives N(53)=14,N(\frac{5}{3})=14, N(83)=28,N(\frac{8}{3})=28, N(38)=29,N(\frac{3}{8})=29, and N(118)=58.N(\frac{11}{8})=58.
Next, N(811)=59,N(\frac{8}{11})=59, N(1911)=118,N(\frac{19}{11})=118, N(1119)=119,N(\frac{11}{19})=119, N(3019)=238,N(\frac{30}{19})=238, N(4919)=476,N(\frac{49}{19})=476, and N(6819)=952.N(\frac{68}{19})=952. Finally, N(8719)=1904N(\frac{87}{19})=1904 and N(1987)=1905.N(\frac{19}{87})=1905. Thus n=1905,n=1905, whose digit sum is 1+9+0+5=15.1+9+0+5=15.
Therefore the correct answer is A.
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.