Problem:
A sequence a1β,a2β,β¦ of non-negative integers is defined by the rule an+2β= β£an+1ββanββ£ for nβ₯1. If a1β=999,a2β<999, and a2006β=1, how many different values of a2β are possible?
Answer Choices:
A. 165
B. 324
C. 495
D. 499
E. 660
Solution:
The condition an+2β=β£an+1ββanββ£ implies that anβ and an+3β have the same parity for all nβ₯1. Because a2006β is odd, a2β is also odd. Because a2006β=1 and anβ is a multiple of gcd(a1β,a2β) for all n, it follows that 1=gcd(a1β,a2β)= gcd(33β
37,a2β). There are 499 odd integers in the interval [1,998], of which 166 are multiples of 3,13 are multiples of 37 , and 4 are multiples of 3β
37=111. By the Inclusion-Exclusion Principle, the number of possible values of a2β cannot exceed 499β166β13+4=324β.
To see that there are actually 324 possibilities, note that for nβ₯3,anβ< max(anβ2β,anβ1β) whenever anβ2β and anβ1β are both positive. Thus aNβ=0 for some Nβ€1999. If gcd(a1β,a2β)=1, then aNβ2β=aNβ1β=1, and for n>N the sequence cycles through the values 1,1,0. If in addition a2β is odd, then a3k+2β is odd for kβ₯1, so a2006β=1.
The problems on this page are the property of the MAA's American Mathematics Competitions