|
|
A250345
|
|
Numerator of the harmonic mean of the first n heptagonal numbers.
|
|
2
|
|
|
1, 7, 378, 4284, 294525, 3180870, 59376240, 2510766720, 2824612560, 147507544800, 2109357890640, 43721236278720, 1468304851693680, 105943842376051680, 113511259688626800, 121078677001201920, 5274489866864858640, 161957865323732718240, 3931977063692844326160
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = 378 because the first 3 heptagonal numbers are [1,7,18], and 3/(1/1+1/7+1/18) = 378/151.
|
|
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, k*(5*k-3)/2)))); s
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|