Answer: C
By Dirichlet's theorem, at a point of discontinuity x=π, the Fourier series of a periodic function f(x) with period 2π converges to the average of its left-hand and right-hand limits:
Sum of the series at x=π is 2f(π−)+f(−π+)=2π+0=2π
Now, we substitute x=π into the given Fourier series:
4π+n=1∑∞[πn21(cosnπ−1)cosnπ−n1cosnπsinnπ]=2π
Since sinnπ=0 and cosnπ=(−1)n for all integers n:
4π+n=1∑∞πn21((−1)n−1)(−1)n=2π
4π+n=1∑∞πn21(1−(−1)n)=2π
The term 1−(−1)n is 0 when n is even, and 2 when n is odd. Thus, only odd terms n=1,3,5,… survive:
4π+π2(1+321+521+721+⋯)=2π
Solving for the required sum S:
π2S=2π−4π=4π⟹S=8π2