Question :
Let's suppose $P$ is a probability, $X$ a random variable defined on $\mathbb{Z}$.
Let's suppose we have $|\sum\limits_{k\in \mathbb{Z}}P(X=k)e^{ikt}|=1$ for all $t\in \mathbb{R}$.
Prove that $X$ is almost surely constant.
My attempt :
If we consider the case where $X$ is defined on $\mathbb{N}$, we have $1=|\sum\limits_{k\in \mathbb{Z}}P(X=k)e^{ikt}|\leqslant \sum\limits_{k\in \mathbb{Z}}P(X=k) = 1$ so we have equality in the triangular inequality, but it's a infinite inequality so I'm not sure I can apply the result for the equality case for infinite sum.
Could someone help me ? (there's surely an easiest way than what I tried)