OFFSET
1,2
LINKS
Jean-Christophe Pain, A prime sum involving Bernoulli numbers, arXiv:2303.07934 [math.HO], 2023. See (23) p. 4.
FORMULA
a(n) = (p-2)*(p-1)*(p+1)*(2*p^2-2*p+3)/12 where p=prime(n).
MAPLE
a:= n-> (p-> (p-2)*(p-1)*(p+1)*(2*p^2-2*p+3)/12)(ithprime(n)):
seq(a(n), n=1..29); # Alois P. Heinz, Mar 15 2023
PROG
(PARI) a(n) = my(p=prime(n)); sum(k=1, p-1, k^5\p);
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Mar 15 2023
STATUS
approved