I have problem with calculating $\displaystyle \lim_{n\to \infty}(\lim_{k \to \infty}(\cos{(|n!\pi x|)^{2k}} )) $
I only get hint that it will be $1 \vee 0$ regarding to wheter $x \in \mathbb{Q}$ or $x \in (\mathbb{R}- \mathbb{Q})$ but don't have idea how to find it.