OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Philip Boalch, Counting the fission trees and nonabelian Hodge graphs, arXiv:2410.23358 [math.AG], 2024. See p. 11.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = Sum_{k = 1..n} A(k-1, n-k) where A(i, j) = i^2 + i*j + j^2 + i + j + 1.
G.f.: x * (1 + 2*x + 2*x^2) / (1 - x)^4.
a( n) = -A203551(-n) for all n in Z.
a(n)-a(n-1) = A134238(n). - Bruno Berselli, Jan 03 2012
E.g.f.: x*(5*x^2 + 12*x + 6)*exp(x)/6. - G. C. Greubel, Aug 12 2018
EXAMPLE
G.f. = x + 6*x^2 + 20*x^3 + 48*x^4 + 95*x^5 + 166*x^6 + 266*x^7 + 400*x^8 + ...
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {0, 1, 6, 20}, 40] (* Vincenzo Librandi, Jan 07 2012 *)
PROG
(PARI) {a(n) = n * (5*n^2 - 3*n + 4) / 6};
(Magma) I:=[0, 1, 6, 20]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..50]]; // Vincenzo Librandi, Jan 07 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael Somos, Jan 02 2012
STATUS
approved