OFFSET
1,2
COMMENTS
a(n) = 0 where n=5 (p=11) and n=78940 (p=1006003) see A014127.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= p -> (3&^p-3 mod p^2)/p:
seq(f(ithprime(i)), i=1..100); # Robert Israel, Nov 03 2024
MATHEMATICA
aa = {}; Do[AppendTo[aa, Mod[(3^Prime[n] - 3)/Prime[n], Prime[n]]], {n, 1, 100}]; aa (* Artur Jasinski *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Artur Jasinski, Jun 28 2010
STATUS
approved