OFFSET
1,2
COMMENTS
This sequence is a permutation of the natural numbers as each row starts with the least value not yet in the sequence.
LINKS
EXAMPLE
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]
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 07 2020
STATUS
approved