How to prove that $\lim(\underset{k\rightarrow\infty}{\lim}(\cos(|n!\pi x|)^{2k}))=\chi_\mathbb{Q}$ [duplicate]

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.


Baby Rudin has this as an example.

See Baby Rudin page 145


Hint: Show that if $x \in \mathbb{Q}$, then there exists some $N$ such that for $n > N$, $n! \pi x$ is an integer multiple of $2\pi$. Conclude that it tends to 1.

Show that if $x \not \in \mathbb{Q}$, then $\lim_{k\rightarrow \infty} [\cos (n! \pi x)]^{2k} = 0$.