Let m be a positive integer. Define the sequence a0,a1,a2,⋯ by a0=0,a1=m, and an+1=m2an−an−1 for n=1,2,3,⋯.
Prove that an ordered pair (a,b) of non-negative integers, with a≤b, gives a solution to the equation
ab+1a2+b2=m2
if and only if (a,b) is of the form (an,an+1) for some n≥0.