Dealing with summation over floor(n/i)