OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {5, 8}]>0 || SequenceCount[ IntegerDigits[n], {8, 5}]>0, 1, 0], {n, 2200}], {1, 0}][[All, 1]] (* Harvey P. Dale, Jan 17 2023 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved