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 1,4 occurs in the base 5 representation of n but not of n-1.
0

%I #7 Sep 30 2015 11:39:05

%S 9,34,45,59,84,109,134,159,170,184,209,225,259,284,295,309,334,359,

%T 384,409,420,434,459,484,509,534,545,559,584,609,634,659,670,684,709,

%U 734,759,784,795,809,834,850,884,909,920,934,959

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

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

%K nonn,base

%O 1,1

%A _Clark Kimberling_