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

A043244
Numbers k such that 3 and 8 occur juxtaposed in the base-10 representation of k but not of k-1.
0
38, 83, 138, 183, 238, 283, 338, 380, 438, 483, 538, 583, 638, 683, 738, 783, 830, 883, 938, 983, 1038, 1083, 1138, 1183, 1238, 1283, 1338, 1380, 1438, 1483, 1538, 1583, 1638, 1683, 1738, 1783, 1830, 1883, 1938, 1983, 2038
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {3, 8}]>0 || SequenceCount[IntegerDigits[n], {8, 3}]>0, 1, 0], {n, 2500}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 21 2017 *)
CROSSREFS
Sequence in context: A219999 A219997 A039421 * A044024 A133529 A211498
KEYWORD
nonn,base
STATUS
approved