%I #7 May 21 2015 09:07:07
%S 16,65,118,163,212,261,310,359,408,461,506,555,604,653,702,751,832,
%T 849,898,947,996,1045,1094,1147,1192,1241,1290,1339,1388,1437,1490,
%U 1535,1584,1633,1682,1731,1780,1833,1878,1927,1976
%N Numbers n such that string 2,2 occurs in the base 7 representation of n but not of n+1.
%t Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n,7],{2,2}]>0,1,0],{n,2000}],{1,0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* _Harvey P. Dale_, May 21 2015 *)
%K nonn,base
%O 1,1
%A _Clark Kimberling_
|