OFFSET
0,3
COMMENTS
Doubly octagonal numbers.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
OEIS Wiki, Figurate numbers
Eric Weisstein's World of Mathematics, Octagonal Number
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1)
FORMULA
G.f.: x*(1 + 171*x + 411*x^2 + 65*x^3)/(1 - x)^5.
Sum_{n>0} 1/a(n) = (sqrt(3)*gamma + sqrt(3)*polygamma(0, 1/3) - polygamma(0, (1/3)*(2 - sqrt(3))) + polygamma(0, (1/3)*(2 + sqrt(3))))/(4*sqrt(3)) = 1.006842786293...,where gamma is the Euler-Mascheroni constant (A001620), and polygamma is the derivative of the logarithm of the gamma function.
MATHEMATICA
Table[n (3 n - 2) (9 n^2 - 6 n - 2), {n, 0, 30}]
PROG
(PARI) concat(0, Vec(x*(1+171*x+411*x^2+65*x^3)/(1-x)^5 + O(x^100))) \\ Altug Alkan, Nov 27 2015
(Magma) [n*(3*n-2)*(9*n^2-6*n-2): n in [0..30]]; // Vincenzo Librandi, Nov 28 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Nov 27 2015
STATUS
approved