Polynomial is an expression consisting of variables and coefficients, that involves only the operations of addition, subtraction, multiplication, and non-negative integer exponents of variables.

Using the fact that cos is 2π-periodic, we have

That is,
for any
and integer
.

We get 2 solutions in the interval [0, 2π] for
and
,

X=5+(p+a). I think thats right idk tho