OFFSET
1,1
MATHEMATICA
Select[Range[3000], MemberQ[Partition[IntegerDigits[#, 9], 2, 1], {2, 5}] && !MemberQ[Partition[IntegerDigits[#+1, 9], 2, 1], {2, 5}]&] (* Harvey P. Dale, Nov 03 2013 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {2, 5}]>0, 1, 0], {n, 3000}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 14 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved