OFFSET
2,2
LINKS
David A. Corneth, Table of n, a(n) for n = 2..10001
EXAMPLE
a(9) = 18 as 18 = 3 * 6 has 6 divisors. 20 = 4 * 5 also has 6 divisors, but 20 > 18.
PROG
(PARI) a(n) = {my(res = n-1, r = numdiv(n-1)); for(i = 2, (n+1)\2, c = numdiv(i*(n-i)); if(c > r, r = c; res = i*(n-i); ) ); res } \\ David A. Corneth, Dec 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 28 2004
EXTENSIONS
Corrected and extended by Franklin T. Adams-Watters, Jun 14 2006
STATUS
approved