Problem

Source: Baltic Way 1996 Q7

Tags: number theory proposed, number theory



A sequence of integers a1,a2, is such that a1=1,a2=2 and for n1, an+2={5an+13an,if anan+1 is even,an+1an,if anan+1 is odd, Prove that an0 for all n.