OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {2, 7}]>0||SequenceCount[IntegerDigits[n, 9], {7, 2}]>0, 1, 0], {n, 1700}], {0, 1}]][[2]] (* The program uses the SequenceCount and SequencePosition functions from Mathematica version 10 *) (* Harvey P. Dale, Jun 13 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved