OFFSET
1,3
COMMENTS
In the first 10000 terms, 17 appears 649 times and 257 appears 781 times. - T. D. Noe, Oct 01 2013
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A000215(n) mod n.
MAPLE
with(numtheory):seq(irem(fermat(n), n), n=1..19);
# second Maple program:
a:= n-> (2&^(2^n) + 1) mod n:
seq(a(n), n=1..100); # Alois P. Heinz, Sep 30 2013
MATHEMATICA
Table[Mod[PowerMod[2, 2^n, n] + 1, n], {n, 100}] (* T. D. Noe, Oct 01 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zerinvary Lajos, Apr 20 2008
STATUS
approved