Divisor Function d(N) is the number of divisors of N less than or equal to N. Ex. d(1)=1,d(2)=2,d(10)=4...so on....
I had a question that says to compute answer to function Z(N)=d(1)+d(2)+d(3)....d(N) After some thinking I figured out Z(N)= N+(N/2)+(N/3)....+1 .
But I got stuck here because if I take N common... Z(N)=N(1+(1/2)+(1/3).....(1/N)) and Z(N)~~N*ln(N+.52771).... But I want accurate answer.
Can somebody give a elegant answer since N can be very large...
Terence Tao has an archive "What's new", and there is a nice article on the divisor function $$ d(n)=\sum_{d\mid n} 1 $$ and the sum $$ \sum_{n\le x}d(n)=\sum_{d\le x}\sum_{n\le x,\; d\mid n}1=\sum_{d\le x}\left(\frac{x}{d}+O(1)\right)=x\log x+O(x), $$ and better estimates - if you want an elegant answer. The archive can be found here: http://terrytao.wordpress.com/tag/divisor-function/.