OFFSET
1,1
COMMENTS
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
J. B. Dobson, On Lerch's formula for the Fermat quotient, arXiv:1103.3907 [math.NT], 2011-2014.
MAPLE
map(p -> (2 &^ (p-1) mod p^2) + (3 &^ (p-1) mod p^2), select(isprime, [2, seq(2*i+1, i=1..1000)])); # Robert Israel, Aug 11 2014
MATHEMATICA
Table[p = Prime[n]; PowerMod[2, p-1, p^2] + PowerMod[3, p-1, p^2], {n, 40}] (* Jean-François Alcover, Sep 19 2018 *)
PROG
(PARI) forprime(p=2, 1e2, a=2^(p-1)%p^2; b=3^(p-1)%p^2; print1(a+b, ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Aug 06 2014
STATUS
approved