OFFSET
0,11
COMMENTS
Suggested by Atkinson article in Information Processing Letters.
REFERENCES
M. D. Atkinson, Partial orders and comparison problems, Sixteenth Southeastern Conference on Combinatorics, Graph Theory and Computing, (Boca Raton, Feb 1985), Congressus Numerantium 47, 77-88.
LINKS
Reinhard Zumkeller, Rows n = 0..120 of triangle, flattened
M. D. Atkinson, Zigzag permutations and comparisons of adjacent elements, Information Processing Letters 21 (1985), 187-189.
EXAMPLE
Triangle begins:
1;
0, 1;
0, 0, 1;
1, 1, 1, 0;
3, 2, 1, 0, 0;
0, 3, 5, 6, 6, 6;
...
PROG
(Haskell)
a058257 n k = a058257_tabl !! n !! k
a058257_row n = a058257_tabl !! n
a058257_tabl = [1] : ox 0 [1] where
ox turn xs = ys : ox (mod (turn + 1) 4) ys
where ys | turn <= 1 = scanl (+) 0 xs
| otherwise = reverse $ scanl (+) 0 $ reverse xs
-- Reinhard Zumkeller, Nov 01 2013
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Dec 06 2000
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Dec 12 2000
STATUS
approved