I wrote it as $n^{120}=1\pmod{310}$ and thought I'd divide it in simpler congruences with primes (is this right?)
$$n^{120}=n^{4\cdot30}=1\pmod{31}$$
$$n^{120}=n^{30\cdot4}=1\pmod{5}$$
But then I'm stuck on this one: it seems to be a false congruence and I guess I can't apply Fermat's theorem on this one, or can I? How do I solve it?
$$n^{120}=1\pmod{2}$$
If this approach is valid I'd prefer answers continuing from here if possible.