$f$ is piecewise continuous in $[-\pi,\pi]$ , f's Fourier series is (formally) $\frac{a_0}{2} +\sum_1^\infty a_n\cos(nx)+b_n\sin(nx)$ and $f$ period is $\frac{\pi}{m}$ when $m\in\mathbb{N}$, I wish to demonstrate that $a_n=b_n=0$ for $n\neq 2m\cdot k$.
Well I worked technically, and got the result, yet I don't succeed to justify why and if my method is valid.
$f(x) = \frac{a_0}{2} + \sum_1^\infty a_n\cos(nx) + b_n\sin(nx)$.
$f(x+\pi/m) = \frac{a_0}{2} + \sum_1^\infty a_n\cos(n(x+\frac{\pi}{m})) + b_n\sin(n(x+\frac{\pi}{m})) = $
$\frac{a_0}{2} + \sum_1^\infty a_n(\cos(nx)\cos(\frac{n}{m}\pi) -\sin(nx)\sin(\frac{n}{m}\pi)) + b_n(\cos(nx)\sin(\frac{n}{m}\pi) +\sin(nx)\cos(\frac{n}{m}\pi))$
$=\frac{a_0}{2} + \sum_1^\infty [a_n\cos(\frac{n}{m}\pi) + b_n\sin(\frac{n}{m}\pi)]\cos(nx) +[-a_n(sin(\frac{n}{m}\pi))+b_n\cos(\frac{n}{m}\pi)]sin(nx)$
So we got a second representation for $f(x)$ since $f(x)=f(x+\frac{\pi}{m})$, thus writing the equations:
$a_n =a_n\cos(\frac{n}{m}\pi) + b_n\sin(\frac{n}{m}\pi)$
$b_n = -a_n(\sin(\frac{n}{m}\pi))+b_n\cos(\frac{n}{m}\pi)$
leads to $a_n=b_n=0$ for $n\neq 2m\cdot k$.
My problem is that I don't see how to justify that $f(x)=f(y)$ means that the fourier serieses are the same for $x$ and $y$ especially when I don't know the kind of the series convergence.