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.

A331018 Lexicographically earliest sequence of distinct positive terms that can be viewed as an irregular table where the n-th row has a(n) terms and for n > 1, T(n, k) is a multiple of k.

Original entry on oeis.org

1, 2, 4, 3, 6, 9, 8, 5, 10, 12, 7, 14, 15, 16, 20, 18, 11, 22, 21, 24, 25, 30, 28, 32, 27, 13, 26, 33, 36, 35, 42, 49, 40, 17, 34, 39, 44, 45, 19, 38, 48, 52, 50, 54, 56, 64, 63, 60, 23, 46, 51, 68, 55, 66, 70, 72, 81, 80, 77, 84, 29, 58, 57, 76, 65, 78, 91
Offset: 1

Views

Author

Rémy Sigrist, Jan 07 2020

Keywords

Comments

This sequence is a permutation of the natural numbers as each row starts with the least value not yet in the sequence.

Examples

			The first terms and rows are:
  n   a(n)  row(n)
  --  ----  -------------------------------------
   1     1  [1]
   2     2  [2, 4]
   3     4  [3, 6, 9, 8]
   4     3  [5, 10, 12]
   5     6  [7, 14, 15, 16, 20, 18]
   6     9  [11, 22, 21, 24, 25, 30, 28, 32, 27]
   7     8  [13, 26, 33, 36, 35, 42, 49, 40]
   8     5  [17, 34, 39, 44, 45]
   9    10  [19, 38, 48, 52, 50, 54, 56, 64, 63, 60]
  10    12  [23, 46, 51, 68, 55, 66, 70, 72, 81, 80, 77, 84]
  11     7  [29, 58, 57, 76, 65, 78, 91]
		

Crossrefs

See A331010 for similar sequences.

Programs

  • PARI
    See Links section.