Problem:
Consider the sequence of numbers defined recursively by t1β=1 and for n>1 by tnβ=1+t(n/2)β when n is even and by tnβ=1/t(nβ1)β when n is odd. Given that tnβ=19/87, the sum of the digits of n is
Answer Choices:
A. 15
B. 17
C. 19
D. 21
E. 23
Solution:
It is easily seen by induction that tkβ>1 is true for all even k, and that 0<tkβ<1 is true for all odd k>1. Hence n is odd, and tnβ1β is 87/19. Because 87/19>4, it follows that nβ1 is divisible by 2 four times and that, subtracting 1 from tnβ1β for each division by 2, term number (nβ1)/16 is (87/19)β4=11/19. Continuing in this way, we find that term number 16nβ1ββ1=(nβ17)/16 is 19/11, term number (nβ17)/32 is 8/11, term number (nβ49)/32 is 11/8, term number (nβ49)/64 is 3/8, term number (nβ113)/64 is 8/3, term number (nβ113)/256 is 2/3, term number (nβ369)/256 is 3/2, term number (nβ369)/512 is 1/2, term number (nβ881)/512 is 2, and term number (nβ881)/1024 is 1. Hence (nβ881)/1024 equals 1, so n=1905. The sum of the digits of n is 15.
Note. The given recursion is just a disguised form of the standard representation of a positive rational number in continued fraction form.