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”).

A112985
2^(2^n mod n-1).
1
1, 4, 1, 1, 2, 1, 16, 4, 16, 1, 128, 256, 16, 256, 16, 256, 2, 1, 16, 4, 16, 4096, 65536, 256, 16, 256, 16384, 256, 33554432, 16, 16, 256, 16, 1, 65536, 256, 2, 1048576, 16, 256, 65536, 4294967296, 16, 4, 16, 4294967296, 17179869184, 256, 16, 4294967296, 2048
OFFSET
0,2
LINKS
FORMULA
a(n)=2^A112983(n).
MATHEMATICA
Join[{1, 4}, Table[2^PowerMod[2, n, n-1], {n, 2, 60}]] (* Harvey P. Dale, Jan 17 2017 *)
CROSSREFS
Sequence in context: A010324 A016525 A077604 * A293769 A073693 A360916
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 08 2005
STATUS
approved