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

A043987
Numbers k such that 4 and 6 occur juxtaposed in the base-9 representation of k but not of k+1.
0
42, 58, 123, 139, 204, 220, 285, 301, 366, 386, 447, 463, 530, 544, 609, 625, 690, 706, 771, 787, 852, 868, 933, 949, 1014, 1030, 1095, 1115, 1176, 1192, 1259, 1273, 1338, 1354, 1419, 1435, 1500, 1516, 1581, 1597, 1662, 1678
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {4, 6}]>0 || SequenceCount[ IntegerDigits[ n, 9], {6, 4}]>0, 1, 0], {n, 1700}], {1, 0}] [[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 25 2017 *)
CROSSREFS
Cf. A007095.
Sequence in context: A080971 A039384 A043207 * A300378 A300680 A053323
KEYWORD
nonn,base
STATUS
approved