[Tournament of the Towns]: The sequence an is defined as follows: a0=9, an+1=3an4+4an3 for n>0. Show that a10 contains more than 1000 nines in decimal notation.
Solution:
Since the end result in terms of decimal notation, it makes sense to go modulo 10. Also, for such problems, it is always advisable to experiment around a bit. a0=9, a1=22599. This gives us a hint. Maybe, the nines are always trailing. Since
a0≡−1 mod 10 a1≡−1 mod 100 Maybe an≡−1 mod 102nIf this assumption turns out to be true, then indeed a10 would end with atleast 1023 nines which would complete our proof. Once the general idea is in place, it is easy to prove that the assumption mentioned above is true. Assume an=p10q−1 which is true for n=0, where p=1,q=1, It’s also true for n=1, where p=226,q=2
an+1=3an4+4an3 =>an+1=3p4104q−8p3103q+6p2102q−1 =>an+1=(3p4102q−8p310q+6p2102q)102q−1Thus, if an≡−1 mod 10q then an+1≡1 mod 102q, which by induction implies a10≡−1 mod 101024, hence completing our proof.