Problem

Source: 2021 Taiwan APMO Preliminary First Round

Tags: number theory, modular arithmetic



Let $n$ be a positive integer. All numbers $m$ which are coprime to $n$ all satisfy $m^6\equiv 1\pmod n$. Find the maximum possible value of $n$.