A382475 Numbers k where record values occur for A129132(k)/k = A380264(k)/A380265(k), the mean value of the maximum exponent in the prime factorization of the numbers {1, 2, ..., k}.
1, 2, 3, 4, 8, 9, 16, 18, 20, 24, 25, 27, 28, 32, 56, 64, 81, 128, 162, 176, 192, 256, 352, 384, 736, 768, 896, 1026, 1029, 1056, 1280, 1792, 1863, 1864, 1928, 2052, 2058, 2064, 2080, 2304, 2432, 2560, 2944, 3776, 4376, 4384, 4480, 4482, 5104, 5120, 5121, 5125
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..73
- Ivan Niven, Averages of Exponents in Factoring Integers, Proc. Amer. Math. Soc., Vol. 22, No. 2 (1969), pp. 356-360.
- Eric Weisstein's World of Mathematics, Niven's Constant.
- Wikipedia, Niven's constant.
Programs
-
Mathematica
f[k_] := Max[FactorInteger[k][[;; , 2]]]; f[1] = 0; seq[lim_] := Module[{v = {}, s = 0, rm = -1, r}, Do[s += f[k]; r = s/k; If[r > rm, rm = r; AppendTo[v, k]], {k, 1, lim}]; v]; seq[10^5]
-
PARI
f(k) = if(k == 1, 0, vecmax(factor(k)[, 2])); list(lim) = {my(v = List(), s = 0, rm = -1, r); for(k = 1, lim, s += f(k); r = s/k; if(r > rm, rm = r; listput(v, k))); Vec(v);}
Comments