OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Rows n = 1..100 of triangle, flattened
FORMULA
Triangle by columns: leftmost column = (1, 0, 1, -1, 1, ...); columns > 1 = (1, 1, 0, 0, 0, ...).
EXAMPLE
First few rows of the triangle:
1;
0, 1;
1, 1, 1;
-1, 0, 1, 1;
1, 0, 0, 1, 1;
-1, 0, 0, 0, 1, 1;
1, 0, 0, 0, 0, 1, 1;
-1, 0, 0, 0, 0, 0, 1, 1;
1, 0, 0, 0, 0, 0, 0, 1, 1;
...
PROG
(Haskell)
a153860 n k = a153860_tabl !! (n-1) !! (k-1)
a153860_row n = a153860_tabl !! (n-1)
a153860_tabl = [1] : [0, 1] : iterate (\(x:xs) -> -x : 0 : xs) [1, 1, 1]
-- Reinhard Zumkeller, Dec 16 2013
CROSSREFS
KEYWORD
tabl,sign
AUTHOR
Gary W. Adamson, Jan 03 2009
STATUS
approved