OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2793
EXAMPLE
a(0) = 1: [].
a(1) = 1: [1].
a(2) = 2: [1,1], [1,2].
a(3) = 4: [1,1,1], [1,1,2], [1,2,2], [1,2,4].
a(4) = 9 : [1,1,1,1], [1,1,1,2], [1,1,1,4], [1,1,2,2], [1,1,2,4], [1,2,2,2], [1,2,2,4], [1,2,4,4], [1,2,4,8].
a(5) = 20: [1,1,1,1,1], [1,1,1,1,2], [1,1,1,1,4], [1,1,1,2,2], [1,1,1,2,4], [1,1,1,4,4], [1,1,1,4,8], [1,1,2,2,2], [1,1,2,2,4], [1,1,2,4,4], [1,1,2,4,8], [1,2,2,2,2], [1,2,2,2,4], [1,2,2,2,8], [1,2,2,4,4], [1,2,2,4,8], [1,2,4,4,4], [1,2,4,4,8], [1,2,4,8,8], [1,2,4,8,16].
MAPLE
b:= proc(n, t) option remember; `if`(n=0, 1,
`if`(t=0, 0, b(n, iquo(t, 2))+b(n-1, t+1)))
end:
a:= n-> b(n, 1):
seq(a(n), n=0..38);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 27 2021
STATUS
approved