A365098 Primes p such that Sum_{k=1..p-1} q^2_p(k) == 0 (mod p), with q_p(k) a Fermat quotient.
2, 11, 971
Offset: 1
Links
- René Gy, Generalized Lerch primes, INTEGERS, 18 (2018), #A10.
Programs
-
Mathematica
Join[{2}, Select[Prime[Range[2, 200]], Divisible[Numerator[BernoulliB[# - 1] - 1 + 1/# - (BernoulliB[2*# - 2] - 1 + 1/#)/2], #^2] &]] (* Amiram Eldar, Aug 22 2023 *)
-
PARI
forprime(p = 2, 10000, if(sum(j=1, p-1, (Mod(j, p^3)^(p-1) - 1)^2) % p^3 == 0, print1(p, ", "))) /* John Blythe Dobson, Apr 30 2024 */
Comments