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

%I #7 Feb 02 2017 17:25:06

%S 40,104,168,232,296,327,360,424,488,552,616,680,744,808,839,872,936,

%T 1000,1064,1128,1192,1256,1320,1351,1384,1448,1512,1576,1640,1704,

%U 1768,1832,1863,1896,1960,2024,2088,2152,2216,2280,2344

%N Numbers n such that string 5,0 occurs in the base 8 representation of n but not of n+1.

%t SequencePosition[Table[If[SequenceCount[IntegerDigits[n,8],{5,0}]>0,1,0],{n,2500}],{1,0}][[All,1]] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Feb 02 2017 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_