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.

A247349 Regular triangle obtained by procedure described in comment in the case of m=3.

Original entry on oeis.org

1, 1, 2, 2, 1, 2, 2, 1, 2, 3, 3, 2, 1, 2, 3, 2, 3, 3, 2, 1, 4, 2, 1, 4, 2, 3, 3, 3, 2, 3, 3, 3, 2, 1, 4, 3, 3, 2, 1, 4, 3, 2, 3, 3, 3, 4, 3, 2, 3, 3, 3, 3, 2, 1, 4, 3, 3, 3, 3, 2, 1, 4, 4, 3, 2, 5, 3, 2, 1, 4, 4, 3, 2, 5, 3, 3, 3, 4, 4, 4, 3, 2, 5, 3, 3, 3, 4, 3, 2, 1, 4
Offset: 1

Views

Author

Michel Marcus, Sep 16 2014

Keywords

Comments

"Consider an array of numbers formed by a rotating queue: starting with just the number 1, to obtain the next row we move everything in the last row m steps to the left, with numbers at the front of the row cycling around and appearing at the back. We then append 1 plus the head of the last row to the new row." (from the Introduction of article by P. J. Graber).

Crossrefs

Cf. A238303 (triangle obtained when m=0).

Programs

  • PARI
    moveleft(v, m) = {va = v; for (i=1, m, nb = #va; vb = vector(nb, i, if (i