OFFSET
1,3
COMMENTS
Coefficient of x^(27*n) in Product_{i=1..n} (1 + x^i + x^(8*i) + x^(27*i)). - Robert Israel, Jul 03 2018
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..102
EXAMPLE
All solutions for n=5:
0 0 3 2 1 1 2
0 3 0 2 1 2 1
0 3 0 1 2 3 3
0 0 3 3 3 2 1
3 0 0 0 0 1 2
MAPLE
F:= proc(n, s) option remember; if n = 1 or s < 0 then 0 else add(procname(n-1, s-n*j^3), j=0..3) fi end proc:
F(1, 0):= 1: F(1, 1):= 1: F(1, 8):= 1: F(1, 27):= 1:
seq(F(n, n*27), n=1..50); # Robert Israel, Jul 03 2018
MATHEMATICA
F[n_, s_] := F[n, s] = If[n == 1 || s < 0, 0, Sum[F[n-1, s-n*j^3], {j, 0, 3}]]; F[1, 0] = 1; F[1, 1] = 1; F[1, 8] = 1; F[1, 27] = 1;
Table[F[n, 27 n], {n, 1, 50}] (* Jean-François Alcover, May 23 2023, after Robert Israel *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 20 2011
STATUS
approved