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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A272880 Number of integers in [prime(n), 2*prime(n)] with maximal number of divisors. 1
1, 1, 3, 1, 3, 1, 2, 1, 1, 1, 1, 2, 2, 3, 4, 5, 6, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 7, 8, 9, 9, 9, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
Let n=3, prime(n)=5. In the interval [5,10] we have 3 numbers {6,8,10} with maximal number of divisors in this interval (4). So, a(3)=3.
MATHEMATICA
a[n_] := Tally[Sort@ DivisorSigma[0, Range[#, 2 #]&@ Prime@n]][[-1, 2]]; Array[a, 87] (* Giovanni Resta, May 08 2016 *)
PROG
(PARI) a(n) = {my(nb = 2*prime(n) - prime(n) + 1); my(vd = vector(nb, i, numdiv(prime(n)+i-1))); my(vmax = vecmax(vd)); #select(x->x == vmax, vd); } \\ Michel Marcus, May 09 2016
CROSSREFS
Sequence in context: A010283 A134699 A331286 * A003636 A353415 A078929
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, May 08 2016
EXTENSIONS
More terms from Peter J. C. Moses, May 08 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 25 06:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)