\(P=4\left[\left(cos^21^0+cos^289^0\right)+\left(cos^22^0+cos^288^0\right)+...+\left(cos^244^0+cos^246^0\right)+cos^245^0\right]\)
\(=4\left[\left(cos^21^0+sin^21^0\right)+\left(cos^22^0+sin^22^0\right)+...+\left(cos^244^0+sin^244^0\right)+cos^245^0\right]\)
\(=4\left(1+1+...+1+\frac{\sqrt{2}}{2}\right)\)