OFFSET
1,2
COMMENTS
The sequence starts with a(1) = 1 and is always extended with the smallest positive integer not yet present that does not lead to a contradiction.
No term can end with an odd number of successive 0.
EXAMPLE
a(2) = 2 as the smallest positive integer not yet present that does not lead to a contradiction is 2;
a(3) = 21 (and not 20, as no term can end with an odd number of successive 0), because 21 is the smallest positive integer not yet present that completes a pair of identical even digits (2-2) and that does not lead to a contradiction;
a(4) = 3 as the smallest positive integer not yet present that does not lead to a contradiction is 3;
a(5) = 4 as the smallest positive integer not yet present that does not lead to a contradiction is 4;
a(6) = 41 (and not 40, as no term can end with an odd number of successive 0), because 41 is the smallest positive integer not yet present that completes a pair of identical even digits (4-4) and that does not lead to a contradiction; etc.
PROG
(Python) # see A342076 for aupton, pairsup
mustpair = {0, 2, 4, 6, 8}
print(aupton(67)) # Michael S. Branicky, Feb 28 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini, Feb 28 2021
STATUS
approved
