OFFSET
3,1
LINKS
Takashi Agoh and Ladislav Skula, The fourth power of the Fermat quotient, J. Numb. Theory 128 (2008) 2865-2873.
FORMULA
a(n) = (3^(p-1)-1)/p, where p=A000040(n).
MAPLE
A146211:= n-> map (p-> (3^(p-1)-1)/p, ithprime(n)):
seq (A146211(n), n=3..16); # Jani Melik, Jan 24 2010
MATHEMATICA
Table[(3^(p - 1) - 1)/p, {p, Prime[Range[3, 16]]}] (* Amiram Eldar, Oct 13 2023 *)
PROG
(PARI) a(n) = my(p=prime(n)); (3^(p-1)-1)/p; \\ Michel Marcus, Oct 13 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
R. J. Mathar, Oct 28 2008
STATUS
approved