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

%I #8 Nov 21 2013 12:47:03

%S 18,82,144,210,274,338,402,466,530,594,656,722,786,850,914,978,1042,

%T 1106,1152,1234,1298,1362,1426,1490,1554,1618,1680,1746,1810,1874,

%U 1938,2002,2066,2130,2192,2258,2322,2386,2450,2514

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

%t Select[Range[2800],MemberQ[Partition[IntegerDigits[#,8],2,1],{2,2}]&& !MemberQ[Partition[IntegerDigits[#-1,8],2,1],{2,2}]&] (* _Harvey P. Dale_, Oct 13 2011 *)

%K nonn,base

%O 1,1

%A _Clark Kimberling_