login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A247015
Number of integers x smaller than n and that satisfy sigma(x)/x > sigma(n)/n where sigma is the sum of divisors.
4
0, 0, 1, 0, 3, 0, 5, 1, 4, 2, 9, 0, 11, 5, 6, 2, 15, 1, 17, 2, 10, 9, 21, 0, 16, 11, 15, 4, 27, 1, 29, 7, 19, 16, 22, 0, 35, 18, 24, 4, 39, 4, 41, 12, 16, 23, 45, 0, 35, 15, 32, 14, 51, 7, 37, 9, 36, 29, 57, 0, 59, 31, 24, 14, 45, 9, 65, 22, 44, 13, 69, 1, 71
OFFSET
1,5
LINKS
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
Cf. A000203 (sigma), A017665 and A017666 (sigma(n)/n).
Sequence in context: A050925 A086696 A259743 * A241972 A357823 A226770
KEYWORD
nonn
AUTHOR
Michel Marcus, Sep 09 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 20 08:53 EDT 2024. Contains 376067 sequences. (Running on oeis4.)