Problem

Source: Iranian National Olympiad (3rd Round) 2006

Tags: modular arithmetic, abstract algebra, number theory, least common multiple, function, group theory, number theory proposed



$n$ is a natural number. $d$ is the least natural number that for each $a$ that $gcd(a,n)=1$ we know $a^{d}\equiv1\pmod{n}$. Prove that there exist a natural number that $\mbox{ord}_{n}b=d$