OFFSET
1,2
LINKS
R. Mestrovic, Wolstenholme's theorem: Its Generalizations and Extensions in the last hundred and fifty years (1862-2011), arXiv:1111.3057 [math.NT], 2011.
MAPLE
f3:=proc(n) local p;
p:=ithprime(n);
numer(add(1/i^2, i=1..p-1));
end proc;
[seq(f3(n), n=1..20)];
MATHEMATICA
Table[Numerator[HarmonicNumber[Prime[n]-1, 2]], {n, 1, 15}] (* Jean-François Alcover, Nov 29 2017 *)
PROG
(PARI) a(n) = my(p=prime(n)); numerator(sum(k=1, p-1, 1/k^2)); \\ Michel Marcus, Apr 05 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 21 2012
STATUS
approved