OFFSET
1,1
COMMENTS
The sequence starts with a(1) = 12 and is always extended with the smallest integer not yet present and not leading to a contradiction.
This is the lexicographically first sequence having this property, except the trivial 1, 11, 111, 1111, 11111,...
Trying a(1) = 10 gives a sequence with terms having leading zeroes -- which is not admitted.
All terms belong to A007931. - Rémy Sigrist, Dec 08 2018
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Perl program for A299823
EXAMPLE
The first five terms of the sequence are:
12,121,1,2,21
The first five odd-ranked terms are:
12,1,21,122,111
The first five even-ranked terms are:
121,2,11,22,1111
... and we see that those three partitions start with the same concatenation:
121211221...
PROG
(Perl) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Eric Angelini, Feb 19 2018
EXTENSIONS
More terms from Rémy Sigrist, Dec 08 2018
STATUS
approved