The given series assigns a coefficient 1 to every odd square and a coefficient 2 to every even square.
Hence for the kth term
ck={1,2,k oddk even,Tk=ckk2.
Let n be even. Write n=2m. Splitting the sum into even and odd indices,
S2m=∑k=12mckk2=∑k=1k even2m2k2+∑k=1k odd2mk2.
Put k=2r for even terms and k=2r−1 for odd terms (with r=1,2,…,m):
S2m=r=1∑m2(2r)2+r=1∑m(2r−1)2=8r=1∑mr2+r=1∑m(4r2−4r+1)=12r=1∑mr2−4r=1∑mr+m.
Using the standard formulae
∑r=1mr=2m(m+1),∑r=1mr2=6m(m+1)(2m+1),
we get
S2m=12⋅6m(m+1)(2m+1)−4⋅2m(m+1)+m=2m(m+1)(2m+1)−2m(m+1)+m=2m(m+1)(2m+1−1)+m=4m2(m+1)+m=m(2m+1)2.
Because n=2m, this is 2n(n+1)2, exactly the sum furnished in the question, so our breakdown is consistent.
Now let n be odd, say n=2m+1. Then
S2m+1=S2m+(2m+1)2=m(2m+1)2+(2m+1)2=(m+1)(2m+1)2.
Substituting m=2n−1 and 2m+1=n gives
Sn=(2n+1)n2=2n2(n+1).
Therefore, when n is odd the sum of the series equals 2n2(n+1).
Option C which is: 2n2(n+1)