I know that the signals Fourier serie looks like this:
$$x(t)=\frac{1}{2}-\frac{1}{\pi}\sum^{\infty}_{n=1}\frac{1}{n}\sin(\frac{n\pi t}{L})$$
And that the graph should look something like this (pretend the lines are straight, did my best):
To solve it I thought that the sum $\frac{1}{\pi}\sum^{\infty}_{n=1}\frac{1}{n}\sin(\frac{n\pi t}{L})$ have to be $\frac{1}{2}$ when $t=0$ and $- \frac{1}{2}$ when $t=T_0$. Because of this, $x(\frac{T_0}{2})$ should be equal to $\frac{1}{2}$ since the graph is linear between $0 \le t \le T_0$. Because of this we know that the sum should be equal to zero:
$$\sum^{\infty}_{n=1}\frac{1}{n}\sin(\frac{n\pi \frac{T_0}{2}}{L}) = 0$$
Now, the only way I can think of this being the case is if $\frac{n\pi \frac{T_0}{2}}{L} = 2\pi, \forall n, n \in N$ since if sinusoid is 0, $\frac{1}{n}$ is zero. So then I solve:
$$\frac{\pi \frac{T_0}{2}}{L} = 2\pi \implies T_0 = 4L$$
This was my answer, but the solution say that $T_0 = 2L$ and I can not for the life of me figure out why. Can anyone help me?
