OFFSET
2,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 2..10000 (terms up to n = 1000 by Harry J. Smith)
FORMULA
a(n) = Max{d(c); p(n+1) > c > p(n)}, c is composite, p(n) is the n-th prime and d=A000005().
EXAMPLE
p(30)=113 is followed by 13 composites; numbers of divisors are {8, 4, 6, 6, 4, 4, 16, 3, 4, 4, 6, 4, 12}; the smallest is 4=a(30) and the largest is 16.
MATHEMATICA
Max /@ DivisorSigma[0, Select[SplitBy[Range@ Prime@ 81, PrimeQ], CompositeQ@ First@ # &]] (* Michael De Vlieger, Nov 02 2017 *)
PROG
(PARI) { n=-1; q=3; forprime (p=5, prime(1003), a=0; for (i=q + 1, p - 1, a=max(numdiv(i), a)); q=p; write("b061117.txt", n++, " ", a) ) } \\ Harry J. Smith, Jul 18 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 29 2001
STATUS
approved