sum from n = 1 to infinity of (cos(n))^n