As the title suggest, I'm wondering if there is an explicit formula $f(n)$ for the maximum number of non-trivial divisors of any integer $n$. If that's not possible, then some bound on the number of divisors would also be appreciated.
For example, let $d$ be a function returning the number of divisors of an integer. If we restrict the domain of $f$ to just the integers $(5,10)$, then $f(n)=n/3$ since:
$d(5)=0$,
$d(6)=2$,
$d(7)=0$,
$d(8)=2$,
$d(9)=1$,
$d(10)=2$
I wrote a short script to test this and it looks like $n/3$ is a limit for any integer up to 10,000 (see below for the script). Does this hold to infinity? If so does anyone have an argument why this is the case?
max.divisibility=function (x) {
for (i in 1:x) {
a[i]=(length(factors(i))-2)/i
}
return(max(a))
}
max.divisibility(10000)
[1] 0.3333333