OFFSET
1,2
COMMENTS
Row 3 of A183953.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..200
FORMULA
Empirical: a(n) = 2*a(n-1) - a(n-2) + a(n-9) - 2*a(n-10) + a(n-11).
Empirical g.f.: x*(1 + x)*(1 - x + x^3 - x^4 + 2*x^5 - 3*x^6 + 4*x^7 - 3*x^8 + x^9) / ((1 - x)^3*(1 + x + x^2)*(1 + x^3 + x^6)). - Colin Barker, Apr 07 2018
EXAMPLE
All solutions for n=3:
..0....1
..0....2
..3....2
MATHEMATICA
r[n_, k_, s_] := r[n, k, s] = Which[s < 0, 0, n == 0, If[s == 0, 1, 0], True, Sum[r[n - 1, k, s - c*n^2], {c, 0, k}]];
T[n_, k_] := r[n, k, k*n^2];
a[n_] := T[3, n];
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 08 2011
STATUS
approved