OFFSET
1,1
MATHEMATICA
Flatten[Position[Partition[Table[If[MemberQ[Partition[IntegerDigits[n], 2, 1], {0, 5}], 1, 0], {n, 3600}], 2, 1], {0, 1}]]+1 (* Harvey P. Dale, Mar 23 2015 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {0, 5}]>0, 1, 0], {n, 4000}], {0, 1}][[All, 2]] (* Harvey P. Dale, Dec 24 2022 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved