sum (n-1/p)^2 (1-p)^np from n=1 to infty