Discrete fourier series and Discrete fourier transform