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

A043243
Numbers k such that 3 and 7 occur juxtaposed in the base-10 representation of k but not of k-1.
0
37, 73, 137, 173, 237, 273, 337, 370, 437, 473, 537, 573, 637, 673, 730, 773, 837, 873, 937, 973, 1037, 1073, 1137, 1173, 1237, 1273, 1337, 1370, 1437, 1473, 1537, 1573, 1637, 1673, 1730, 1773, 1837, 1873, 1937, 1973, 2037
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {3, 7}]>0|| SequenceCount[ IntegerDigits[n], {7, 3}]>0, 1, 0], {n, 2100}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 29 2018 *)
CROSSREFS
Sequence in context: A055604 A135952 A039420 * A044023 A179579 A069204
KEYWORD
nonn,base
STATUS
approved