OFFSET
1,2
COMMENTS
LINKS
Eric Weisstein's World of Mathematics, Harmonic Number.
EXAMPLE
Denominators of Harmonic Number (H[n] = Sum[1/i, {i, n}]) are A002805[n] = {1,2,6,12,60,20,140,280,2520,2520,27720,27720,360360,360360,360360,...}.
Denominators of Alternative Harmonic Number (H'[n] = Sum[(-1)^(i+1)*1/i, {i, n}]) are A058312[n] = {1,2,6,12,60,60,420,840,2520,2520,27720,27720,360360,360360,72072,...}.
MATHEMATICA
Do[s1=Denominator[Sum[(-1)^(i+1)*1/i, {i, n}]]; s2=Denominator[Sum[1/i, {i, n}]]; If[Equal[s2, s1], Print[n]], {n, 1, 1500}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Aug 02 2006
STATUS
approved