OFFSET
1,2
COMMENTS
The only pairs of consecutive numbers are 1, 2; 3, 4; 5, 6; 7, 8.
The 2-digit numbers that are not in the sequence are 12, 21, 34, 43, 56, 65, 89, 98 (78 and 87 do appear at n = 76 and n = 78, respectively).
The last 2-digit number to appear is 91 at n = 113.
Starting from a(73) = 79, the first term of alternating terms must contain 9, and the second term must contain 8.
If the initial terms of this sequence are swapped (by defining a(1)=2 and a(2)=1) then the resulting sequence is identical to this for n>12. - R. J. Cano, Apr 13 2018
LINKS
Rémy Sigrist, PARI program for A302566
R. J. Cano, Sequencer program in PARI
EXAMPLE
a(4) = 22 since it contains the largest digit from a(2) = 2, and can't be 12 since the digit 1 appears in a(3) = 10.
MATHEMATICA
Nest[Append[#, Block[{k = 2, d}, While[Nand[FreeQ[#[[All, 1]], k], MemberQ[Set[d, IntegerDigits[k]], Max[#[[-2, -1]] ] ], ! IntersectingQ[d, #[[-1, -1]]] ], k++]; {k, d}]] &, Transpose@ {#, IntegerDigits@ #} &@ Range[2], 73][[All, 1]] (* Michael De Vlieger, Apr 12 2018 *)
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Enrique Navarrete, Apr 09 2018
STATUS
approved