OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..600
FORMULA
a(n) = Sum_{k=0..n} A284249(n,k).
MAPLE
b:= proc(n, s) option remember; `if`(n=0,
`if`(issqr(8*s+1), 1, 0), b(n-1, s)+b(n-1, s+n))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..40);
MATHEMATICA
b[n_, s_] := b[n, s] = If[n == 0,
If[IntegerQ@Sqrt[8*s + 1], 1, 0], b[n - 1, s] + b[n - 1, s + n]];
a[n_] := b[n, 0];
Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Mar 17 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 23 2017
STATUS
approved