OFFSET
1,1
MATHEMATICA
jQ[n_]:=Module[{idn7=IntegerDigits[n, 7]}, Max[SequenceCount[idn7, {0, 3}], SequenceCount[idn7, {3, 0}]]>0]; Transpose[ SequencePosition[ Table[ If[ jQ[n], 1, 0], {n, 1200}], {1, 0}]][[1]] (* The program uses the SequenceCount and SequencePosition functions from Mathematica version 10 *) (* Harvey P. Dale, Oct 26 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved