If a0=sin2(π45) and an+1=4an(1−an) for n≥0, find the smallest positive integer n such that an=a0.
Using my calculator, I got a9 = a0.