The largest cycles consist by the quadratic residues and Fermat primes
  This paper studies the largest cycles consisted by the quadratic residues modulo prime numbers. We give some formulae about the maximum length of the cycles. Especially, the formula for modulo Fermat primes is given. 
Haifeng Xu
math.NT