OFFSET
0,3
COMMENTS
Row sums are A014318.
LINKS
Reinhard Zumkeller, Rows n = 0..125 of triangle, flattened
EXAMPLE
[0] [1]
[1] [1, 2]
[2] [1, 3, 4]
[3] [1, 4, 8, 8]
[4] [1, 5, 13, 21, 16]
[5] [1, 6, 19, 40, 56, 32]
[6] [1, 7, 26, 66, 122, 154, 64]
[7] [1, 8, 34, 100, 222, 376, 440, 128]
PROG
(Sage)
@CachedFunction
def A201634(n, k):
if k==n: return 2^n
return add(A201634(n-1, j) for j in (0..k))
for n in (0..7) : print([A201634(n, k) for k in (0..n)])
(Haskell)
a201634 n k = a201634_tabl !! n !! k
a201634_row n = a201634_tabl !! n
a201634_tabl = iterate (\xs -> scanl1 (+) xs ++ [2 * last xs]) [1]
-- Reinhard Zumkeller, Sep 20 2014
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Nov 14 2012
STATUS
approved