login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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

%I #7 Dec 09 2015 17:30:24

%S 58,139,220,301,382,463,522,544,625,706,787,868,949,1030,1111,1192,

%T 1251,1273,1354,1435,1516,1597,1678,1759,1840,1921,1980,2002,2083,

%U 2164,2245,2326,2407,2488,2569,2650,2709,2731,2812

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

%t Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n,9],{6,4}] > 0,1,0],{n,3000}],{0,1}]][[2]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* _Harvey P. Dale_, Dec 09 2015 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_