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

A043217
Numbers k such that 0 and 2 occur juxtaposed in the base-10 representation of k but not of k-1.
0
20, 102, 120, 200, 220, 302, 320, 402, 420, 502, 520, 602, 620, 702, 720, 802, 820, 902, 920, 1002, 1020, 1102, 1120, 1200, 1220, 1302, 1320, 1402, 1420, 1502, 1520, 1602, 1620, 1702, 1720, 1802, 1820, 1902, 1920, 2000, 2102
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {0, 2}]>0 || SequenceCount[ IntegerDigits[ n], {2, 0}]>0, 1, 0], {n, 2200}], {0, 1}][[;; , 2]] (* Harvey P. Dale, Dec 29 2023 *)
CROSSREFS
Sequence in context: A044271 A044652 A041774 * A039394 A043997 A297585
KEYWORD
nonn,base
STATUS
approved