1/Pi + Cos[x]/2 + Sum[(2/Pi) ((-1)^n (Cos[2 n x]/(1 - 4 n^2))), {n, 1, 2^4}]