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

A043894
Numbers k such that 2 and 4 occur juxtaposed in the base-5 representation of k but not of k+1.
0
14, 22, 39, 47, 64, 74, 89, 97, 114, 122, 139, 147, 164, 172, 189, 199, 214, 222, 239, 247, 264, 272, 289, 297, 314, 324, 339, 347, 374, 389, 397, 414, 422, 439, 449, 464, 472, 489, 497, 514, 522, 539, 547, 574, 589, 597, 614
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 5], {2, 4}]>0 || SequenceCount[IntegerDigits[n, 5], {4, 2}]>0, 1, 0], {n, 700}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 21 2019 *)
CROSSREFS
Cf. A007091.
Sequence in context: A045282 A039291 A043114 * A054276 A305729 A344135
KEYWORD
nonn,base
STATUS
approved