OFFSET
0,2
COMMENTS
For more information see A376033.
LINKS
Alois P. Heinz, Rows n = 0..16, flattened
EXAMPLE
Triangle T(n,k) begins:
1;
2;
4, 3;
8, 5, 6, 4;
16, 8, 9, 6, 12, 7, 8, 5;
32, 13, 15, 9, 18, 11, 11, 7, 24, 11, 12, 8, 16, 9, 10, 6;
...
MAPLE
h:= proc(n) option remember; `if`(n=0, 1, 2^(1+ilog2(n))) end:
b:= proc(n, k, t) option remember; `if`(n=0, 1, add(`if`(j=1 and
Bits[And](t, k)>0, 0, b(n-1, k, irem(2*t+j, h(k)))), j=0..1))
end:
T:= (n, k)-> b(n, k, 0):
seq(seq(T(n, k), k=0..ceil(2^(n-1))-1), n=0..7);
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Alois P. Heinz, Oct 10 2024
STATUS
approved