OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..800
EXAMPLE
a(3) = 216 because the first 3 9-gonal numbers are [1,9,24], and 3/(1/1+1/9+1/24) = 216/83.
MATHEMATICA
Module[{nn=20, pns}, pns=PolygonalNumber[9, Range[nn]]; Numerator[Table[ HarmonicMean[Take[pns, n]], {n, nn}]]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 30 2016 *)
PROG
(PARI)
harmonicmean(v) = #v / sum(k=1, #v, 1/v[k])
s=vector(30); for(n=1, #s, s[n]=numerator(harmonicmean(vector(n, k, (7*k^2-5*k)/2)))); s
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Colin Barker, Nov 25 2014
STATUS
approved