For a periodic function $f(x)=f(x+T)$, its Fourier transform can be written as an infinite sum:
$$ f(x)=\sum_{-\infty}^{\infty}c_n e^{2\pi i x/T}. $$
This seems to suggest that the information contained in this periodic function is equivalently contained in this set of coefficients. And the number of the coefficients we need is as many as the number of integers.
For a function that is not periodic
$$ f(x) = \int_{-\infty}^{\infty}f(\xi) e^{-2\pi i \xi x} d \xi, $$
the number of coefficients we need seems to be as many as the real numbers.
So how should I understand this mapping in turns of mathematical lauguage, for example, what property is common between the integer numbers and a periodic function, and between the real numbers and a non-periodic function?