A120263 Ratio of the numerator of n*HarmonicNumber[n] to the numerator of HarmonicNumber[n]: A096617(n)/A001008(n).
1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 25, 1, 1, 1, 1
Offset: 1
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[Numerator(n*HarmonicNumber(n))/Numerator(HarmonicNumber(n)): n in [1..100]]; // G. C. Greubel, Sep 01 2018
-
Mathematica
Numerator[Table[n*Sum[1/i,{i,1,n}],{n,1,500}]]/Numerator[Table[Sum[1/i,{i,1,n}],{n,1,500}]]
-
PARI
{h(n) = sum(k=1,n,1/k)}; for(n=1,100, print1(numerator(n*h(n))/numerator(h(n)), ", ")) \\ G. C. Greubel, Sep 01 2018
Formula
a(n) = n / gcd(denominator(H(n)),n), where H(n) = sum(1/k, k=1..n). [Gary Detlefs, Sep 05 2011]
Comments