A153860 Triangle by columns: leftmost column = (1, 0, 1, -1, 1, -1, 1, ...); columns >1 = (1, 1, 0, 0, 0, ...).
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, -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1
Offset: 1
Examples
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; ...
Links
- Reinhard Zumkeller, Rows n = 1..100 of triangle, flattened
Programs
-
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
Formula
Triangle by columns: leftmost column = (1, 0, 1, -1, 1, ...); columns > 1 = (1, 1, 0, 0, 0, ...).
Comments