Prove that for any positive integer $a,$ $a^{561} \equiv a \pmod{561}.$
All I got so far is by Fermat's Little Theorem,
$a^{3} \equiv a \pmod{3}$
$a^{11} \equiv a \pmod{11}$
$a^{17} \equiv a \pmod {17}$
Is there a way to use the Chinese Remainder Theorem on this problem?
Here is a proof by induction that $a^{17+16n}\equiv a\bmod 17$.
Base case: $a^{17}\equiv a\bmod 17$ (Fermat's little theorem).
Inductive step: assume $a^{17+16(n-1)}\equiv a\bmod17$.
Then $a^{17+16n}\equiv a^{16}a^{17+16(n-1)}\equiv a^{16}a=a^{17}\equiv a\bmod17.\square$
Similarly, $a^{11+10n}\equiv a\bmod11$ and $a^{3+2n}\equiv a\bmod3$.
Therefore, $a^{561}\equiv a\bmod 3, 11, $ and $17$,
so by the Chinese remainder theorem $a^{561}\equiv a\pmod {3\times11\times17=561}$.