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

A043230
Numbers k such that 1 and 7 occur juxtaposed in the base-10 representation of k but not of k-1.
0
17, 71, 117, 170, 217, 271, 317, 371, 417, 471, 517, 571, 617, 671, 710, 771, 817, 871, 917, 971, 1017, 1071, 1117, 1170, 1217, 1271, 1317, 1371, 1417, 1471, 1517, 1571, 1617, 1671, 1700, 1817, 1871, 1917, 1971, 2017, 2071
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {1, 7}]>0 || SequenceCount[IntegerDigits[n], {7, 1}]>0, 1, 0], {n, 2100}], {0, 1}][[All, 2]] (* Harvey P. Dale, Oct 17 2021 *)
CROSSREFS
Sequence in context: A179039 A152295 A039407 * A044010 A106921 A105414
KEYWORD
nonn,base
STATUS
approved