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

A044207
Numbers n such that string 2,4 occurs in the base 8 representation of n but not of n-1.
1
20, 84, 148, 160, 212, 276, 340, 404, 468, 532, 596, 660, 672, 724, 788, 852, 916, 980, 1044, 1108, 1172, 1184, 1236, 1280, 1364, 1428, 1492, 1556, 1620, 1684, 1696, 1748, 1812, 1876, 1940, 2004, 2068, 2132, 2196, 2208, 2260
OFFSET
1,1
LINKS
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {2, 4}]>0, 1, 0], {n, 2500}], {0, 1}][[All, 2]] (* Harvey P. Dale, Mar 30 2022 *)
CROSSREFS
Sequence in context: A219473 A256869 A156389 * A044588 A172221 A006566
KEYWORD
nonn,base
STATUS
approved