OFFSET
1,7
COMMENTS
In other words, eventual period of 2 under the map x -> x^2 mod n.
a(n) is a divisor of A256608(n).
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
For n=9 the map acts as follows: 2 -> 4 -> 7 -> 4 -> 7 and so on. This means the eventual period is 2, hence a(9)=2.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Ivan Neretin, Apr 04 2015
STATUS
approved