OFFSET
1,5
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 0 if and only if n is superabundant (A004394).
a(p) = p - 2, for p prime.
EXAMPLE
a(2) = 0, since below 2 no x have sigma(x)/x greater than sigma(2)/2.
a(3) = 1, since below 3 only sigma(2)/2 is greater than sigma(3)/3.
MATHEMATICA
r[n_] := r[n] := DivisorSigma[1, n]/n; a[n_] := Module[{rn = r[n]}, Count[Range[n-1], _?(r[#] > rn &)]]; Array[a, 73] (* Amiram Eldar, Jul 01 2019 *)
PROG
(PARI) lista(nn) = {v = vector(nn, n, sigma(n)/n); for (n=1, nn, nb = sum(i=1, n, v[i] > v[n]); print1(nb, ", "); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Sep 09 2014
STATUS
approved