OFFSET
2,2
COMMENTS
a(n) = 0 if and only if p is a base-3 Wieferich prime (Mirimanoff prime, cf. A014127).
These values can be used in a search for Mirimanoff primes to define "near-Mirimanoff primes" by choosing some value x and reporting all primes with |A| <= x in order to get a larger dataset.
PROG
(PARI) a(n) = my(p=prime(n)); abs(centerlift(Mod(3, p^2)^((p-1)/2))\/p)
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Apr 14 2021
STATUS
approved