login
A043256
Numbers k such that 6 and 8 occur juxtaposed in the base-10 representation of k but not of k-1.
0
68, 86, 168, 186, 268, 286, 368, 386, 468, 486, 568, 586, 668, 680, 768, 786, 860, 886, 968, 986, 1068, 1086, 1168, 1186, 1268, 1286, 1368, 1386, 1468, 1486, 1568, 1586, 1668, 1680, 1768, 1786, 1860, 1886, 1968, 1986, 2068
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {6, 8}]>0 || SequenceCount[ IntegerDigits[n], {8, 6}]>0, 1, 0], {n, 2100}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 03 2019 *)
CROSSREFS
Sequence in context: A180937 A024881 A039433 * A044036 A341179 A261316
KEYWORD
nonn,base
STATUS
approved