I came across a question in which, if I am able to calculate this sum,
$\sum_{k=1}^{n }\:\lfloor{n/k}\rfloor=$ ?
it would get solved quite easily. I have never seen any closed form for this question, (though I saw a simplification by a previous answer: $\sum_{k=1}^{n }\:\lfloor{n/k}\rfloor=2\sum_{k=1}^{\lfloor\sqrt{n}\rfloor }\:\lfloor{n/k}\rfloor-\lfloor{\sqrt{n}}\rfloor^2$).
I was wondering, does there exist any closed form or other simplified ways of calculation for this sum?
Thanks in advance!