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

A044099
Numbers n such that string 4,2 occurs in the base 5 representation of n but not of n-1.
1
22, 47, 72, 97, 110, 122, 147, 172, 197, 222, 235, 247, 272, 297, 322, 347, 360, 372, 397, 422, 447, 472, 485, 497, 522, 547, 550, 597, 610, 622, 647, 672, 697, 722, 735, 747, 772, 797, 822, 847, 860, 872, 897, 922, 947, 972
OFFSET
1,1
LINKS
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 5], {4, 2}]>0, 1, 0], {n, 1000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 04 2019 *)
CROSSREFS
Sequence in context: A161666 A132763 A250723 * A044480 A253602 A217751
KEYWORD
nonn,base
STATUS
approved