A329127 Lexicographically earliest sequence of distinct positive integers such that the concatenation of the odd-indexed terms equals the concatenation of the even-indexed terms.
1, 11, 12, 2, 3, 31, 13, 32, 21, 14, 4, 5, 51, 15, 52, 22, 23, 33, 34, 41, 16, 6, 7, 71, 17, 72, 24, 42, 25, 53, 35, 54, 43, 36, 61, 18, 8, 9, 91, 19, 92, 26, 62, 27, 73, 37, 74, 44, 45, 55, 56, 63, 38, 81, 110, 10, 20, 201, 111, 112, 28, 82, 29, 93, 39, 94
Offset: 1
Examples
The first terms of the odd and even bisections are: +------+-+---+-+---+---+-+---+---+---+---+---+-+---+---+---+---+---+---+ | odd |1|1 2|3|1 3|2 1|4|5 1|5 2|2 3|3 4|1 6|7|1 7|2 4|2 5|3 5|4 3|6 1| ... +------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | even |1 1|2|3 1|3 2|1 4|5|1 5|2 2|3 3|4 1|6|7 1|7 2|4 2|5 3|5 4|3 6|1 8| ... +------+---+-+---+---+---+-+---+---+---+---+-+---+---+---+---+---+---+---+
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, PARI program for A329127
Crossrefs
Cf. A197124.
Programs
-
PARI
See Links section.
Comments