For a function that can accurately be represented by a sampled function, the maximum value of n for which the Fourier coefficient is non-zero is n=N/2 where N is the number of sample points in a single period - giving a finite sum for the Fourier series