OFFSET
0,3
COMMENTS
Doubly 9-gonal (or nonagonal) numbers.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
OEIS Wiki, Figurate numbers
Eric Weisstein's World of Mathematics, Nonagonal Number
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1)
FORMULA
G.f.: x*(1 + 256*x + 661*x^2 + 111*x^3)/(1 - x)^5.
Sum_{n>0} 1/a(n) = (4*(sqrt(65)*gamma + sqrt(65)*polygamma(0, 2/7) - 5*polygamma(0, (1/14)*(9 - sqrt(65))) + 5*polygamma(0, (1/14)*(9 + sqrt(65)))))/(25*sqrt(65)) = 1.0045877861645573..., where gamma is the Euler-Mascheroni constant (A001620), and polygamma is the derivative of the logarithm of the gamma function.
MATHEMATICA
Table[n (7 n - 5) (49 n^2 - 35 n - 10)/8, {n, 0, 30}]
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 261, 1956, 7291}, 40] (* Harvey P. Dale, Apr 29 2017 *)
PROG
(PARI) vector(100, n, n--; n*(7*n-5)*(49*n^2-35*n-10)/8) \\ Altug Alkan, Nov 27 2015
(Magma) [n*(7*n-5)*(49*n^2-35*n-10)/8: n in [0..30]]; // Vincenzo Librandi, Nov 28 2015
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Ilya Gutkovskiy, Nov 27 2015
STATUS
approved