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”).

A044231
Numbers n such that string 5,4 occurs in the base 8 representation of n but not of n-1.
0
44, 108, 172, 236, 300, 352, 364, 428, 492, 556, 620, 684, 748, 812, 864, 876, 940, 1004, 1068, 1132, 1196, 1260, 1324, 1376, 1388, 1452, 1516, 1580, 1644, 1708, 1772, 1836, 1888, 1900, 1964, 2028, 2092, 2156, 2220, 2284, 2348
OFFSET
1,1
MATHEMATICA
Select[Range[2400], MemberQ[Partition[IntegerDigits[#, 8], 2, 1], {5, 4}] && !MemberQ[Partition[IntegerDigits[#-1, 8], 2, 1], {5, 4}]&] (* Harvey P. Dale, Jan 15 2012 *)
CROSSREFS
Sequence in context: A332590 A187933 A118483 * A044612 A258555 A258548
KEYWORD
nonn,base
STATUS
approved