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.

A322426 Array read by downwards antidiagonals: A(n, k) is the k-th term of a "Look to the left" sequence starting with 1,2,...,n (see A293630).

Original entry on oeis.org

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

Views

Author

Iain Fox, Dec 07 2018

Keywords

Examples

			| n\k |  1   2   3   4   5   6   7   8   9  10  11  12  13  ...
|-----|-----------------------------------------------------------
|  2  |  1,  2,  1,  1,  1,  2,  1,  1,  2,  1,  1,  1,  2, ...
|  3  |  1,  2,  3,  1,  2,  1,  2,  1,  2,  1,  2,  3,  1, ...
|  4  |  1,  2,  3,  4,  1,  2,  3,  1,  2,  3,  1,  2,  3, ...
|  5  |  1,  2,  3,  4,  5,  1,  2,  3,  4,  1,  2,  3,  4, ...
|  6  |  1,  2,  3,  4,  5,  6,  1,  2,  3,  4,  5,  1,  2, ...
|  7  |  1,  2,  3,  4,  5,  6,  7,  1,  2,  3,  4,  5,  6, ...
|  8  |  1,  2,  3,  4,  5,  6,  7,  8,  1,  2,  3,  4,  5, ...
| ... |
		

Crossrefs

n-th row: A293630 (n=2), A322423 (n=3), A322424 (n=4), A322425 (n=5).

Programs

  • PARI
    row(n, k) = my(v=vector(n, i, i), w); while(#v
    				

Formula

If k <= n, A(n, k) = k.