sum_(n=0 to infty) (cos(3/4 n pi) (p/sqrt2)^n) p