login
A044097
Numbers n such that string 4,0 occurs in the base-5 representation of n but not of n-1.
1
20, 45, 70, 95, 100, 120, 145, 170, 195, 220, 225, 245, 270, 295, 320, 345, 350, 370, 395, 420, 445, 470, 475, 495, 500, 545, 570, 595, 600, 620, 645, 670, 695, 720, 725, 745, 770, 795, 820, 845, 850, 870, 895, 920, 945, 970
OFFSET
1,1
COMMENTS
All terms are multiples of five. - Harvey P. Dale, Dec 22 2024
LINKS
MATHEMATICA
Flatten[Position[Partition[If[MemberQ[Partition[IntegerDigits[#, 5], 2, 1], {4, 0}], 1, 0]&/@Range[1000], 2, 1], {0, 1}]]+1 (* Harvey P. Dale, Aug 14 2014 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 5], {4, 0}]>0, 1, 0], {n, 1000}], {0, 1}][[;; , 2]] (* Harvey P. Dale, Dec 22 2024 *)
CROSSREFS
Sequence in context: A256870 A134619 A219716 * A044478 A228319 A236474
KEYWORD
nonn,base
STATUS
approved