cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A058257 Triangle read by rows: this is a variant of A008280 in which 2 rows go from left to right, 2 from right to left, 2 from left to right, etc.

Original entry on oeis.org

1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 3, 2, 1, 0, 0, 0, 3, 5, 6, 6, 6, 0, 0, 3, 8, 14, 20, 26, 71, 71, 71, 68, 60, 46, 26, 0, 413, 342, 271, 200, 132, 72, 26, 0, 0, 0, 413, 755, 1026, 1226, 1358, 1430, 1456, 1456, 1456, 0, 0, 413, 1168, 2194, 3420, 4778, 6208, 7664, 9120, 10576
Offset: 0

Views

Author

N. J. A. Sloane, Dec 06 2000

Keywords

Comments

Suggested by Atkinson article in Information Processing Letters.

Examples

			Triangle begins:
  1;
  0, 1;
  0, 0, 1;
  1, 1, 1, 0;
  3, 2, 1, 0, 0;
  0, 3, 5, 6, 6, 6;
  ...
		

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.

Crossrefs

Programs

  • 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

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Dec 12 2000