OFFSET
1,2
COMMENTS
For any pair of consecutive terms, one of the terms uses fewer digits than the other. This term is called the mask. Put the mask on the other term, starting from the right. What is not covered by the mask forms an even number on the left.
The sequence starts with a(1) = 1 and is always extended with the smallest integer not yet present that doesn't lead to a contradiction.
This sequence is a permutation of the positive integers, as all integers will appear at some point, either as mask or masked.
Comparing the two b-files (the first 10000 terms), this seems to be a duplicate of A303847. - R. J. Mathar, Jun 23 2018
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..10001
EXAMPLE
In the pair (1,20), 1 is the mask; 2 emerges and is even;
in the pair (20,2), 2 is the mask; 2 emerges and is even;
in the pair (2,21), 2 is the mask; 2 emerges and is even;
in the pair (21,3), 3 is the mask; 2 emerges and is even;
...
in the pair (117,2018), 117 is the mask; 2 emerges and is even;
etc.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Jean-Marc Falcoz, May 01 2018
STATUS
approved