OFFSET
0,3
COMMENTS
LINKS
Reinhard Zumkeller, Rows n = 0..125 of triangle, flattened
EXAMPLE
. n | Sierpinski: A047999(n,*) | Partial row sums: T(n,*)
. ----+----------------------------+----------------------------
. 0 | 1 | 1
. 1 | 1 1 | 1 2
. 2 | 1 0 1 | 1 1 2
. 3 | 1 1 1 1 | 1 2 3 4
. 4 | 1 0 0 0 1 | 1 1 1 1 2
. 5 | 1 1 0 0 1 1 | 1 2 2 2 3 4
. 6 | 1 0 1 0 1 0 1 | 1 1 2 2 3 3 4
. 7 | 1 1 1 1 1 1 1 1 | 1 2 3 4 5 6 7 8
. 8 | 1 0 0 0 0 0 0 0 1 | 1 1 1 1 1 1 1 1 2
. 9 | 1 1 0 0 0 0 0 0 1 1 | 1 2 2 2 2 2 2 2 3 4
. 10 | 1 0 1 0 0 0 0 0 1 0 1 | 1 1 2 2 2 2 2 2 3 3 4
. 11 | 1 1 1 1 0 0 0 0 1 1 1 1 | 1 2 3 4 4 4 4 4 5 6 7 8
. 12 | 1 0 0 0 1 0 0 0 1 0 0 0 1 | 1 1 1 1 2 2 2 2 3 3 3 3 4 .
PROG
(Haskell)
a261363 n k = a261363_tabl !! n !! k
a261363_row n = a261363_tabl !! n
a261363_tabl = map (scanl1 (+)) a047999_tabl
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Reinhard Zumkeller, Aug 16 2015
STATUS
approved