login
Numbers n such that string 1,4 occurs in the base 8 representation of n but not of n-1.
0

%I #7 Dec 17 2020 13:04:32

%S 12,76,96,140,204,268,332,396,460,524,588,608,652,716,768,844,908,972,

%T 1036,1100,1120,1164,1228,1292,1356,1420,1484,1548,1612,1632,1676,

%U 1740,1804,1868,1932,1996,2060,2124,2144,2188,2252

%N Numbers n such that string 1,4 occurs in the base 8 representation of n but not of n-1.

%t SequencePosition[Table[If[SequenceCount[IntegerDigits[n,8],{1,4}]>0,1,0],{n,2300}],{0,1}][[All,2]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Dec 17 2020 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_