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