Riemann sums. EDIT: The short answer is that it's a good approximation because e^(-n^2/c) drops off very vast as n approaches zero, meaning most of the contributions will come from small (on the order of sqrt(c)).
Other than that, it's just a Riemann sum presented in an aesthetically pleasing manner.