OFFSET
0,3
COMMENTS
a(n) is also the number of semistandard Young tableaux over all partitions of 4 with maximal element <= n. - Alois P. Heinz, Mar 22 2012
Starting from 1 the partial sums give A244864. - J. M. Bergot, Sep 17 2016
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = coefficient of x^4 in 1/((1-x)^n * (1-x^2)^binomial(n,2)).
a(n) = (n^2*(7+5*n^2))/12. G.f.: x*(1+x)*(1+3*x+x^2)/(1-x)^5. [Colin Barker, Mar 18 2012]
EXAMPLE
From Michael B. Porter, Sep 18 2016: (Start)
The nine 2 X 2 matrices summing to 4 are:
4 0 3 0 2 0 1 0 0 0 2 1 1 1 0 1 0 2
0 0 0 1 0 2 0 3 0 4 1 0 1 1 1 2 2 0
(End)
MAPLE
dd := proc(n, m) coeftayl(1/((1-X)^m*(1-X^2)^binomial(m, 2)), X=0, n); seq(dd(4, m), m=0..N);
MATHEMATICA
gf[k_] := 1/((1-x)^k (1-x^2)^(k(k-1)/2));
T[n_, k_] := SeriesCoefficient[gf[k], {x, 0, n}];
a[k_] := T[4, k];
a /@ Range[0, 40] (* Jean-François Alcover, Nov 07 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Marc A. A. van Leeuwen, Jun 12 2008
STATUS
approved