OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
s72Q[n_]:=MemberQ[Partition[IntegerDigits[n, 9], 2, 1], {7, 2}]; Flatten[ Position[ Partition[Boole[Array[s72Q, 3000]], 2, 1], {0, 1}]]+1 (* Harvey P. Dale, Jan 13 2015 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {7, 2}]>0, 1, 0], {n, 3000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 27 2019 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved
