OFFSET
1,2
LINKS
Kelvin Voskuijl, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
a(n) = (n*(n^2+1)^2*(n^2 + 2))/12.
G.f.: x*(1+17*x+103*x^2+178*x^3+103*x^4+17*x^5+x^6)/(1-x)^8.
E.g.f.: exp(x)*x*(12+138*x+406*x^2+390*x^3+144*x^4+21*x^5+x^6)/12.
EXAMPLE
The octahedral numbers and their groups summed begin
1, 6, 19, 44, 85, 146, 231, 344, 489, 670
\/ \---/ \--------/ \---------------/
1, 25, 275, 1734
MATHEMATICA
PROG
(PARI) a(n) = (n*(n^2+1)^2*(n^2 + 2))/12
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kelvin Voskuijl, Apr 09 2026
STATUS
approved
