Considering the last digit, if it is 1, then the number of corresponding natural numbers N is an−1; if it is 3, then the number of corresponding natural numbers N is an−3; if it is 4, then the number of corresponding natural numbers N is an−4, thus an=an−4+an−3+an−1, and a1=1,a2=1,a3=2,a4=4.
Calculations yield a2=1=12,a4=4=22,a6=9=32,a8=25=52,a10=64=82,a12= 169=132,a14=441=212;a1=1,a3=2=1×2,a5=6=2×3,a7=15= 3×5,a9=40=5×8,a11=104=8×13,a13=273=13×21,
Let the sequence fn satisfy f0=f1=1,fn=fn−2+fn−1, then f2=2,f3=3,f4=5,f5=8, f6=13,f7=21. Conjecture a2n−1=fn−1fn,a2n=fn2.
When n=1,2, the conclusion holds; assuming for n=k−1,k, the conclusion holds, i.e., a2k−3=fk−2fk−1,a2k−2=fk−12,a2k−1=fk−1fk,a2k=fk2,
then a2k+1=a2k−3+a2k−2+a2k=fk−2fk−1+fk−12+fk2=fk−1(fk−2+fk−1)+fk2 =fk−1fk+fk2=fk(fk−1+fk)=fkfk+1;
a2k+2=a2k−2+a2k−1+a2k+1=fk−12+fk−1fk+fkfk+1=fk−1(fk−1+fk)+fkfk+1 =fk−1fk+1+fkfk+1=fk+1(fk−1+fk)=fk+12, thus when n=k+1 the conclusion also holds. By the principle of mathematical induction, for all natural numbers n, a2n−1=fn−1fn,a2n=fn2. Therefore, a2n is a perfect square.