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

A043166
Numbers k such that 2 and 4 occur juxtaposed in the base-8 representation of k but not of k-1.
0
20, 34, 84, 98, 148, 160, 212, 226, 272, 290, 340, 354, 404, 418, 468, 482, 532, 546, 596, 610, 660, 672, 724, 738, 784, 802, 852, 866, 916, 930, 980, 994, 1044, 1058, 1108, 1122, 1172, 1184, 1236, 1250, 1280, 1364, 1378, 1428
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {2, 4}]>0 || SequenceCount[ IntegerDigits[n, 8], {4, 2}]>0, 1, 0], {n, 1500}], {0, 1}][[All, 2]] (* Harvey P. Dale, Sep 07 2021 *)
CROSSREFS
Cf. A007094.
Sequence in context: A108669 A293694 A039343 * A043946 A160937 A060124
KEYWORD
nonn,base
STATUS
approved