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

%I #7 Aug 27 2024 17:12:34

%S 41,141,241,341,410,441,541,641,741,841,941,1041,1141,1241,1341,1410,

%T 1441,1541,1641,1741,1841,1941,2041,2141,2241,2341,2410,2441,2541,

%U 2641,2741,2841,2941,3041,3141,3241,3341,3410,3441

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

%t SequencePosition[Table[If[SequenceCount[IntegerDigits[n],{4,1}]>0,1,0],{n,3500}],{0,1}][[;;,2]] (* _Harvey P. Dale_, Aug 27 2024 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_