OFFSET
1,3
COMMENTS
Row 4 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-4) - 2*a(n-5) + a(n-6) + a(n-16) - 2*a(n-17) + a(n-18) - a(n-20) + 2*a(n-21)-a(n-22).
Empirical g.f.: x*(1 - x + 3*x^2 + x^3 + x^4 + 2*x^5 + x^6 + 4*x^7 - 5*x^8 + 7*x^9 + x^10 + 5*x^12 - 3*x^13 + 3*x^14 + 4*x^15 - 4*x^16 + 4*x^17 - x^19 + 2*x^20 - x^21) / ((1 - x)^4*(1 + x)^2*(1 + x^2)^2*(1 + x^4)*(1 + x^8)). - Colin Barker, Apr 07 2018
EXAMPLE
All solutions for n=3:
..2....3....0....1
..3....1....0....1
..2....1....0....3
..1....2....3....1
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[4, n];
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 08 2011
STATUS
approved