Hello I am very new to R and am trying to complete this question but i'm not sure how to go about this in R. Any help is appreciated. Thanks
a)Write a program in R that outputs the partial sum of the first five nonzero terms of the series
1/3π^2 − 4(cos x −1/4cos 2x +1/9cos 3x −1/16cos 4x + 1/25cos 5x)
b) Plot the partial sum.