OFFSET
0,2
COMMENTS
All terms in the first column are odd, all other terms are even.
LINKS
Alois P. Heinz, Rows n = 0..21, flattened
EXAMPLE
T(0,1) = 1 because Stern's triangle has one 1 in row n=0.
T(2,2) = 2 because Stern's triangle has two 2's in row n=2.
T(4,3) = 8 because Stern's triangle has eight 3's in row n=4.
Triangle T(n,k) begins:
1;
3;
5, 2;
7, 4, 4;
9, 6, 8, 4, 4;
11, 8, 12, 8, 12, 0, 8, 4;
13, 10, 16, 12, 20, 4, 16, 8, 8, 4, 8, 4, 4;
15, 12, 20, 16, 28, 8, 28, 12, 16, 8, 24, 8, 16, 8, 4, 4, 8, 8, 8, 0, 4;
...
MAPLE
b:= proc(n) option remember; `if`(n=0, [1], (l-> [1, l[1],
seq([l[i-1]+l[i], l[i]][], i=2..nops(l)), 1])(b(n-1)))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=1..degree(p)))(add(x^j, j=b(n))):
seq(T(n), n=0..8);
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Sep 09 2020
STATUS
approved