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

A044192
Numbers n such that string 0,5 occurs in the base 8 representation of n but not of n-1.
1
69, 133, 197, 261, 325, 389, 453, 517, 552, 581, 645, 709, 773, 837, 901, 965, 1029, 1064, 1093, 1157, 1221, 1285, 1349, 1413, 1477, 1541, 1576, 1605, 1669, 1733, 1797, 1861, 1925, 1989, 2053, 2088, 2117, 2181, 2245, 2309, 2373, 2437, 2501, 2565, 2600, 2629
OFFSET
1,1
MATHEMATICA
f[n_] := Length[StringPosition[ToString[FromDigits[IntegerDigits[n, 8]]], "05", 1]]; a = Select[Table[n, {n, 10000}], f[#] > 0 && f[# - 1] == 0 &] (* Vladimir Joseph Stephan Orlovsky, Jul 16 2011 *)
CROSSREFS
Cf. A044573.
Sequence in context: A004238 A039541 A363905 * A044573 A063355 A044320
KEYWORD
nonn,base
STATUS
approved