OFFSET
1,5
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
OEIS Wiki, 2^n mod n
MAPLE
seq(1 + 2 &^ n mod n, n = 1 .. 250); # Robert Israel, Dec 10 2015
MATHEMATICA
Table[Mod[1 + Mod[2, n]^n, n], {n, 89}] (* Michael De Vlieger, Dec 10 2015 *)
PROG
(PARI) a(n)=(1+2^n)%n \\ Anders Hellström, Dec 10 2015
(PARI) a(n)=lift(1+Mod(2, n)^n); \\ Michel Marcus, Dec 12 2015
(Magma) [(1+2^n) mod (n): n in [1..100]]; // Vincenzo Librandi, Dec 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Jul 26 2004
STATUS
approved