That function is only defined over a set of discrete values (i.e., the natural numbers), so if you represent it as an integral, where you are assuming that the function is defined over a set of continuous numbers, you will only get an approximation.
I mean, you can do what 3unitz just did...