OFFSET
2,1
COMMENTS
Alternating generalized harmonic number is H'(n,m) = Sum_{k=1..n} (-1)^(k+1)*1/k^m. Numerator of H'(p-1,2n) is divisible by p for all integers n > 0 and primes p > 2. Numerator of H'(p-1,2p) is divisible by p^2 for prime p > 2.
LINKS
Eric Weisstein's World of Mathematics, Harmonic Number
Eric Weisstein's World of Mathematics, Wolstenholme's Theorem
FORMULA
a(n) = numerator(Sum_{k=1..prime(n)-1} (-1)^(k+1)/k^(2*prime(n))) / prime(n)^2 for n > 1.
EXAMPLE
prime(2) = 3; a(2) = numerator(1 - 1/2^6) / 3^2 = 63/9 = 7.
prime(3) = 5; a(3) = numerator(1 - 1/2^10 + 1/3^10 - 1/4^10) / 5^2 = 61857887575/25 = 2474315503.
MATHEMATICA
Table[ Numerator[ Sum[(-1)^(k+1)*1/k^(2*Prime[n]), {k, 1, Prime[n]-1} ] ] / Prime[n]^2, {n, 2, 10} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Apr 10 2007
STATUS
approved