OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..15
MAPLE
g():= seq(convert(n, base, 2)[1..9], n=513..1023):
b:= proc(l) option remember;
`if`(l[1]=0, 1, add(b(sort(l-h)), h=g()))
end:
a:= n-> b([n$9]):
seq(a(n), n=0..7);
MATHEMATICA
g[] = Table[Reverse[IntegerDigits[n, 2]][[;; 9]], {n, 2^9+1, 2^10-1}];
b[l_] := b[l] = If[l[[1]] == 0, 1, Sum[b[Sort[l - h]], {h, g[]}]];
a[n_] := b[Table[n, {9}]];
a /@ Range[0, 7] (* Jean-François Alcover, Apr 25 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 11 2015
STATUS
approved