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

A044098
Numbers k such that the string 4,1 occurs in the base 5 representation of k but not of k-1.
0
21, 46, 71, 96, 105, 121, 146, 171, 196, 221, 230, 246, 271, 296, 321, 346, 355, 371, 396, 421, 446, 471, 480, 496, 521, 525, 571, 596, 605, 621, 646, 671, 696, 721, 730, 746, 771, 796, 821, 846, 855, 871, 896, 921, 946, 971
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 5], {4, 1}]>0, 1, 0], {n, 1000}], {0, 1}][[All, 2]] (* Harvey P. Dale, Feb 02 2023 *)
CROSSREFS
Sequence in context: A102603 A147222 A199767 * A044479 A139581 A250777
KEYWORD
nonn,base
STATUS
approved