cosθ=√q
Then −1≤√q≤1
Now
cos2θ=2cos2θ−1
=2q−1
Now q is rational.
Hence
2q2−1 is also rational.
Similarly
cos4θ=2cos22θ−1
=2(2q−1)2−1
=2(4q2−4q+1)−1
=8q2−8q+1
Hence cos4θ is also rational.
And so on.
However cos3θ
=4cos3θ−3cosθ
=√q[4q−3]
Hence cos3θ is not rational.
Similarly cos5θ,cos7θ,cos9θ.. will not be rational.
Therefore we can conclude that cosnθ is rational is nϵ{2,4,6...2N}, and irrational if nϵ{1,3,5..2N+1}.