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.

A375300 Triangle T(n,k) read by rows that has the A001710(n)-th lexicographic permutation of [1,...,n] as row n.

Original entry on oeis.org

1, 1, 2, 2, 1, 3, 2, 4, 3, 1, 3, 2, 5, 4, 1, 3, 6, 5, 4, 2, 1, 4, 3, 7, 6, 5, 2, 1, 4, 8, 7, 6, 5, 3, 2, 1, 5, 4, 9, 8, 7, 6, 3, 2, 1, 5, 10, 9, 8, 7, 6, 4, 3, 2, 1, 6, 5, 11, 10, 9, 8, 7, 4, 3, 2, 1, 6, 12, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 7, 6, 13, 12, 11, 10, 9, 8, 5, 4, 3, 2, 1
Offset: 1

Views

Author

Hugo Pfoertner, Aug 24 2024

Keywords

Examples

			The triangle begins
  1,
  1, 2,
  2, 1, 3,
  2, 4, 3, 1,
  3, 2, 5, 4, 1,
  3, 6, 5, 4, 2, 1,
  4, 3, 7, 6, 5, 2, 1,
  4, 8, 7, 6, 5, 3, 2, 1,
  5, 4, 9, 8, 7, 6, 3, 2, 1,
  5, 10, 9, 8, 7, 6, 4, 3, 2, 1,
  ...
		

Crossrefs

Programs

  • PARI
    a375300_row(n) = if (n<2, [1], my(m=n!\2); forperm(n, p, m--; if (m==0, return(Vec(p)))))