OFFSET
1,3
COMMENTS
Conjecture: p is an odd prime iff p divides p*(p^(p-1)-1)*B(p-1)-1. Seems to be the equivalent (with integer moduli) to Agoh's conjecture (which involves rational moduli).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..58
Eric Weisstein's World of Mathematics, Agoh's Conjecture.
MATHEMATICA
f[p_] := Abs[p * (p^(p-1)-1) * BernoulliB[p-1] - 1]; Table[f[p]/p, {p, Prime[Range[10]]}] (* Amiram Eldar, Apr 26 2025 *)
PROG
(PARI) a(n)=(1/prime(n))*(prime(n)*(prime(n)^(prime(n)-1)-1)*bernfrac(prime(n)-1)-1);
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Oct 26 2004
STATUS
approved
