Example 8 Define the sequence {an}:a1,a2 are the two roots of the equation z2+iz−1=0, and for n⩾2, we have (an+1an−1−an2)+i(an−1+an−1−2an)=0. Prove that for all positive integers n, an2+an+12+an+22=anan+1+an+1an+2+an+2an.
This one wants a proof. Work it on paper, then read the official solution and mark
yourself. Be honest about it: the record is only any use to you if it is.
Official solution
Analyzing from the recursive formula, we derive the general term formula of the sequence {an}, and then prove it. Proof: From the equation z2+iz−1=0, we can solve for z=2−i±3=2−1±3i⋅i=iw or iw2, where w=−21+23i. Without loss of generality, let a1−iw2,a2−iw. From the known recursive relation, we have an2+2ian+i2=an+1an−1+i(an+1+an−1)+i2,
which simplifies to (an+i)2=(an+1+i)(an−1+i). Clearly, an+i=0(n∈N∗). Otherwise, if there exists some n∈N∗ such that an+i=0, then from (1) we get an−1+i=0, and continuing this, we have a2+i=0, which contradicts a2=iw. Therefore, the sequence {an+i} is a geometric sequence with the first term a1+i=i(w2+1) and the common ratio a1+ia2+i=iw2+iiw+i=w. Thus, an+i=i(w2+1)⋅wn−1=−iwn, hence an=−i−iwn.
Since w3=1, we have an−3=an(n⩾1). This indicates that the sequence {an} is a periodic sequence with a period of 3. Also, a3=−2i, so for all n∈N∗, we have an2+an+12+an+22=a12+a22+a32=−w4−w2−4=−(w+w2)−4=−3,anan−1+an+1an+2+an+2an=a1a2+a2a3+a3a1=i2w3−2i2w−2i2w2=−1+2w+2w2=−3,