login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A256607
Eventual period of 2^(2^k) mod n.
7
1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 4, 1, 2, 2, 1, 1, 1, 2, 6, 1, 2, 4, 10, 1, 4, 2, 6, 2, 3, 1, 4, 1, 4, 1, 2, 2, 6, 6, 2, 1, 4, 2, 3, 4, 2, 10, 11, 1, 6, 4, 1, 2, 12, 6, 4, 2, 6, 3, 28, 1, 4, 4, 2, 1, 2, 4, 10, 1, 10, 2, 12, 2, 6, 6, 4, 6, 4, 2, 12, 1, 18, 4, 20, 2, 1, 3
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
FORMULA
a(n) = A007733(A007733(n)).
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
(Haskell)
a256607 = a007733 . fromIntegral . a007733
-- Reinhard Zumkeller, Apr 13 2015
CROSSREFS
First differs from A256608 at n=43.
Column 2 of triangle in A279185.
Sequence in context: A363320 A351032 A280726 * A256608 A279186 A164799
KEYWORD
nonn
AUTHOR
Ivan Neretin, Apr 04 2015
STATUS
approved