OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
EXAMPLE
a(14) = 12 because (2^A141468(14) mod prime(14)) = (2097152 mod 43) = 12.
MATHEMATICA
MapIndexed[PowerMod[2, #, Prime[First[#2]]] &, Join[{0, 1}, Select[Range[100], CompositeQ]]] (* Paolo Xausa, Jul 01 2024 *)
PROG
(PARI) c=-1; forprime(p=1, 999, while(isprime(c++), ); print1(lift( Mod(2, p)^c )", ")) \\ M. F. Hasler, Nov 29 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 29 2010
STATUS
approved