Possible Duplicate:
How is this called? Rationals and irrationals
Please help me prove, that $$\underset{n\rightarrow\infty}{\lim}\left(\underset{k\rightarrow\infty}{\lim}(\cos(|n!\pi x|)^{2k})\right)=\begin{cases} 1 & \iff x\in\mathbb{Q}\\ 0 & \iff x\notin\mathbb{Q} \end{cases}$$
Seems very complicated, but it's on calc I. I've tried use series expansions of cos, but it don't lead to answer. Thanks in advance!
Edit
Please don't use too much advanced techniques.