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

A043157
Numbers k such that 0 and 6 occur juxtaposed in the base-8 representation of k but not of k-1.
0
48, 70, 112, 134, 176, 198, 240, 262, 304, 326, 368, 384, 432, 454, 496, 518, 560, 582, 624, 646, 688, 710, 752, 774, 816, 838, 880, 896, 944, 966, 1008, 1030, 1072, 1094, 1136, 1158, 1200, 1222, 1264, 1286, 1328, 1350, 1392
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {0, 6}]>0||SequenceCount[IntegerDigits[n, 8], {6, 0}]>0, 1, 0], {n, 1400}], {0, 1}]][[2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 15 2016 *)
CROSSREFS
Cf. A007094.
Sequence in context: A241481 A100409 A260921 * A039334 A043937 A173042
KEYWORD
nonn,base
STATUS
approved