The fourier expansion of a "sufficiently nice" periodic function is given by $$a_0/2+\sum_{k=1}^\infty a_k \cos(\frac{2\pi}{T}kx)+\sum_{k=1}^\infty b_k \sin(\frac{2\pi}{T}kx)$$ where $a_k=\frac{2}{T}\int_0^T f(x)\cos(kx)dx$ and $b_k=\frac{2}{T}\int_0^T f(x)\sin(kx)dx$.
In pretty much every resource I've found, there is no mention of $T$ being the fundamental period. I want to know if it matters, as long as the function is $T$ periodic. In particular, I want to prove that if $T$ is the fundamental period of a function and $T'=nT$ where $n\in \mathbb{N}$, then the Fourier expansion obtained using $T'$ as the period is identical.
Unless I'm mistaken, this amounts to showing that $$\frac{2}{nT}\int_0^{nT}f(x)\cos\left(\frac{k}{n}\frac{2\pi }{T} x\right)=\frac{2}{nT}\int_0^{nT}f(x)\sin\left(\frac{k}{n}\frac{2\pi }{T} x\right)dx=0$$ if $k$ is not a multiple of $n$.
I am not sure whether what I want to prove is even true, and if it is, I am unable to prove it. I would appreciate any hints that will guide me further.