OFFSET
0,7
FORMULA
a(0) = ... = a(4) = 1; a(n) = Sum_{i=0..n-5} Sum_{j=0..n-i-5} a(i) * a(j) * a(n-i-j-5).
MATHEMATICA
nmax = 40; A[_] = 0; Do[A[x_] = 1 + x + x^2 + x^3 + x^4 + x^5 A[x]^3 + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
a[n_] := a[n] = If[n < 5, 1, Sum[Sum[a[i] a[j] a[n - i - j - 5], {j, 0, n - i - 5}], {i, 0, n - 5}]]; Table[a[n], {n, 0, 40}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jul 30 2021
STATUS
approved