OFFSET
1,1
COMMENTS
Positions of 5 in A277544.
Numbers having 5 as rightmost nonzero digit in base 6. This is one sequence in a 5-way splitting of the positive integers; the other four are indicated in the Mathematica program.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 5n + O(log n). - Charles R Greathouse IV, Nov 03 2016
MATHEMATICA
z = 260; a[b_] := Table[Mod[n/b^IntegerExponent[n, b], b], {n, 1, z}]
p[b_, d_] := Flatten[Position[a[b], d]]
p[6, 1] (* A277567 *)
p[6, 2] (* A277568 *)
p[6, 3] (* A277569 *)
p[6, 4] (* A277570 *)
p[6, 5] (* A277571 *)
Select[Range[300], Mod[#/6^IntegerExponent[#, 6], 6]==5&] (* Harvey P. Dale, Feb 14 2025 *)
PROG
(PARI) is(n) = Mod(n/6^valuation(n, 6), 6)==5 \\ Felix Fröhlich, Nov 02 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 01 2016
STATUS
approved
