Discrete time Fourier series
$ x[n] = \sum_{k=N} a_ke^{-jkw_0n} $
$ a_k = \frac{1}{N}\sum_{n=N} x[n]e^{-jkw_0n} $