OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[MemberQ[Sort/@Partition[IntegerDigits[n], 2, 1], {4, 9}], 1, 0], {n, 2100}], {0, 1}]][[2]] (* The program uses the SequencePosition function from Mathematica version 10 *) (* Harvey P. Dale, Apr 28 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved