The idea is that we want to sum only when
n is odd
Then,
n(−1)n+1+1=2n+12
We start in the first with
n=1 while we start in the second with
n=0.
But your book is wrong!
n=1∑n(−1)n+1+1sinnx=n=0∑2n+12sinnx
It should be:
n=1∑n(−1)n+1+1sinnx=n=0∑2n+12sin(2n+1)x
Do you see the difference and why?