I want to know an upper bound of this function: $$\sum_{n\le x}\sigma(n)$$ where $\sigma(x)$ is the sum of divisors.
Are there any known upper and lower bounds?
calculussummationupper-lower-bounds
I want to know an upper bound of this function: $$\sum_{n\le x}\sigma(n)$$ where $\sigma(x)$ is the sum of divisors.
Are there any known upper and lower bounds?
Best Answer
This sum actually has a surprisingly nice upper and lower bound. It turns out
$$\frac{x(x+1)}{2} \le \sum_{n\le x}\sigma(n) \le x^2$$
You can verify this for yourself with a python script such as this one
Now let's discuss how I arrived at these bounds:
We can reframe this problem to make it a little simpler to think about. Instead of adding up $\sigma(i)$ for every $i$ from $1$ to $x$, we can instead try to find out how many times each factor(from $1$ to $x$) is counted, and use this to find our answer.
For example in the case of $x=9$ we know:
In general each factor $k$ is counted $\lfloor \frac{x}{k} \rfloor$ times.
This means we can rewrite our sum as
$$\sum_{k=1}^x k \cdot \lfloor \frac{x}{k} \rfloor$$
We can set $ \lfloor \frac{x}{k} \rfloor=1$ to get our lower bound of $\frac{x(x+1)}{2}$
And we can set $ \lfloor \frac{x}{k} \rfloor= \frac{x}{k}$ to get our upper bound of $x^2$