where $D \left({x}\right)$ is the sum of divisors. This sum comes from my work on the number of reducible monic cubics. This is a two part question. By writing out all the divisors $\tau \left({a}\right)$ in this sum I get $$\begin{equation*} \sum_{a = 1}^{N} \sum_{b = 1}^{\left\lfloor{N/a}\right\rfloor} \tau \left({b}\right) = \begin{array}{l} \tau \left({1}\right) + \tau \left({2}\right) + \tau \left({3}\right) + \tau \left({4}\right) + \cdots + \tau \left({N}\right) + \\ \tau \left({1}\right) + \tau \left({2}\right) + \tau \left({3}\right) + \cdots + \tau \left({\left\lfloor{\frac{N}{2}}\right\rfloor}\right) + \\ \tau \left({1}\right) + \tau \left({2}\right) + \tau \left({3}\right) + \cdots + \left({\left\lfloor{\frac{N}{3}}\right\rfloor}\right) + \\ \cdots \\ \tau \left({1}\right). \end{array} \end{equation*}$$
We see that there are $N$ sums of $\tau \left({1}\right)$, $\left\lfloor{N/2}\right\rfloor$ sums of $\tau \left({2}\right)$, $\left\lfloor{N/3}\right\rfloor$ sums of $\tau \left({3}\right)$, $\cdots$ to a single sum of $\tau \left({N}\right)$. Thus we can write
$$\begin{equation*} \sum_{a = 1}^{N} D \left({\left\lfloor{\frac{N}{a}}\right\rfloor}\right) = \sum_{a = 1}^{N} \left\lfloor{\frac{N}{a}}\right\rfloor \tau \left({a}\right). \end{equation*}$$
Question 1: Is there a simpler or more direct proof of this?
Question 2: Can this be solved in terms of known functions or can the sum be reduced.
For example, I am looking to compute values say up to ${10}^{12}$ with in seconds to minutes. With this sum of order $\mathcal{O} \left({N}\right)$ this is not feasible. A case that I have in mind is the sum over the number of divisors can be computed in order of $\mathcal{O} \left({\sqrt{N}}\right)$ instead of $\mathcal{O} \left({N}\right)$ time.
Thanks