A sequence of integers a1,a2,… is such that a1=1,a2=2 and for n≥1, an+2={5an+1−3an,if an⋅an+1 is even,an+1−an,if an⋅an+1 is odd, Prove that an≠0 for all n.
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 n≥1, an+2={5an+1−3an,if an⋅an+1 is even,an+1−an,if an⋅an+1 is odd, Prove that an≠0 for all n.