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

A044608
Numbers n such that string 5,0 occurs in the base 8 representation of n but not of n+1.
0
40, 104, 168, 232, 296, 327, 360, 424, 488, 552, 616, 680, 744, 808, 839, 872, 936, 1000, 1064, 1128, 1192, 1256, 1320, 1351, 1384, 1448, 1512, 1576, 1640, 1704, 1768, 1832, 1863, 1896, 1960, 2024, 2088, 2152, 2216, 2280, 2344
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {5, 0}]>0, 1, 0], {n, 2500}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Feb 02 2017 *)
CROSSREFS
Sequence in context: A039396 A043999 A044227 * A241024 A123992 A235301
KEYWORD
nonn,base
STATUS
approved