OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
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.
FORMULA
EXAMPLE
Fractions begin with 0, 1/2, 2/3, 1, 1, 1, 1, 5/4, 4/3, 13/10, 14/11, 5/4, ...
MATHEMATICA
f[n_] := Min[FactorInteger[n][[;; , 2]]]; f[1] = 0; With[{m = 100}, Numerator[Accumulate[Array[f, m]] / Range[m]]]
PROG
(PARI) lista(nmax) = {my(s = 0); print1(0, ", "); for(n = 2, nmax, s += vecmin(factor(n)[, 2]); print1(numerator(s/n), ", ")); }
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
Amiram Eldar, Jan 18 2025
STATUS
approved