login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A146211
Fermat quotient of the n-th prime with base 3.
6
16, 104, 5368, 40880, 2532160, 20390552, 1364393896, 788854912240, 6641649422408, 4056611764783760, 296528425830656800, 2544627654221217656, 188573151481968108424, 121907205457107043376080
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).
a(n) = A046211(A000040(n)), for n >= 3. - Amiram Eldar, Oct 13 2023
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
Subsequence of A046211. Cf. A007663.
Sequence in context: A010079 A022708 A328816 * A258636 A195806 A081588
KEYWORD
easy,nonn
AUTHOR
R. J. Mathar, Oct 28 2008
STATUS
approved