OFFSET
1,1
MATHEMATICA
Select[Range[2000], MemberQ[Partition[IntegerDigits[#, 7], 2, 1], {0, 6}]&& !MemberQ[Partition[ IntegerDigits[ #+1, 7], 2, 1], {0, 6}]&] (* Harvey P. Dale, Apr 29 2011 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 7], {0, 6}]>0, 1, 0], {n, 2000}], {1, 0}][[;; , 1]] (* Harvey P. Dale, Sep 22 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved