Problem

Source:

Tags: modular arithmetic, number theory, number theory proposed



Let $ A=\{n: 1 \le n \le 2009^{2009},n \in \mathbb{N} \}$ and let $ S=\{n: n \in A,\gcd \left(n,2009^{2009}\right)=1\}$. Let $ P$ be the product of all elements of $ S$. Prove that \[ P \equiv 1 \pmod{2009^{2009}}.\] Nanang Susyanto, Jogjakarta