First density approximation, fixed sqrt that should be csqrt, and a_n, V_n, ect explained better in comments.