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

A044208
Numbers n such that string 2,5 occurs in the base 8 representation of n but not of n-1.
0
21, 85, 149, 168, 213, 277, 341, 405, 469, 533, 597, 661, 680, 725, 789, 853, 917, 981, 1045, 1109, 1173, 1192, 1237, 1301, 1344, 1429, 1493, 1557, 1621, 1685, 1704, 1749, 1813, 1877, 1941, 2005, 2069, 2133, 2197, 2216, 2261
OFFSET
1,1
MATHEMATICA
Flatten[Position[Partition[Table[If[MemberQ[Partition[IntegerDigits[n, 8], 2, 1], {2, 5}], 1, 0], {n, 2300}], 2, 1], {0, 1}]]+1 (* Harvey P. Dale, Mar 29 2015 *)
CROSSREFS
Sequence in context: A104676 A143244 A041856 * A044589 A374527 A116972
KEYWORD
nonn,base
STATUS
approved