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

A043180
Numbers k such that 0 and 1 occur juxtaposed in the base-9 representation of k but not of k-1.
0
9, 81, 163, 171, 244, 252, 325, 333, 406, 414, 487, 495, 568, 576, 649, 657, 729, 892, 900, 973, 981, 1054, 1062, 1135, 1143, 1216, 1224, 1297, 1305, 1378, 1386, 1459, 1467, 1539, 1621, 1629, 1702, 1710, 1783, 1791, 1864
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {0, 1}]>0 || SequenceCount[IntegerDigits[n, 9], {1, 0}]>0, 1, 0], {n, 2000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 08 2020 *)
CROSSREFS
Cf. A007095.
Sequence in context: A207924 A343134 A343104 * A207875 A207678 A207684
KEYWORD
nonn,base
STATUS
approved