If ∣xi∣>2 then ∣xi+1∣=∣xi∣⋅∣3−xi2∣>∣xi∣ it follows that the sequence (∣xi∣) is strictly increasing therefore the sequence (∣xi∣) cannot be periodic. It is thus enough to consider the case when ∣a∣≤2.
Denote xi=2sinα, where −2π≤α≤2π. Then
xi+1=6sinα−8sin3α=2sinα(3−4sin2α)=2sinα(3cos2α−sin2α)=4sinαcos2α+2sinα(cos2α−sin2α)=2sin(2α)cosα+2sinαcos(2α)=2sin(3α).
By an easy induction it follows that if x0=2sinα then xn=2sin(3nα). The equation x0=x2011 now transforms to sinα=sin(32011α), this equation has two sets of solutions:
{α∣32011α=α+2πn, n∈Z}
and
{α∣32011α=π−α+2πm, m∈Z}.
This can be transformed to
{α∣α=32011−12πn, n∈Z}
and
{α∣α=32011+1π+2πm, m∈Z}.
These sets of solutions do not intersect. Assume that for some n and m
32011−12πn=32011+1π+2πm
then 2n(32011+1)=(1+2m)(32011−1) which is impossible because the left side is divisible by 4 while the right side of the equation is not (32011−1≡2(mod4)).
It remains to count the number of n and m for which the corresponding α is in the interval [−π/2,π/2]. This leads to inequalities
−2π≤32011−12πn≤2π,n∈Z
and
−2π≤32011+1π+2πm≤2π,m∈Z
which can be rewritten as
−432011−1≤n≤432011−1,n∈Z
and
−432011+3≤m≤432011−1,m∈Z.
The first inequality has 2⌊432011−1⌋+1=2432011−3+1 solutions while the second one has ⌊432011+3⌋+⌊432011−1⌋+1=432011+1+432011−3+1. The total number of solutions is
2432011−3+1+432011+1+432011−3+1=32011.