The statement is true: \(30=2\cdot 3\cdot 5\), and for \(a\) coprime to 30, \(a^{12}\equiv 1\) modulo 3 and 5, so \(a^{13}\equiv a\) modulo 3 and 5, and it is trivial modulo 2. For \(a=7\), \(7^{13}\equiv 7 \pmod{30}\).
Euler's theorem states that if \(a\) and \(n\) are coprime, then \(a^{\varphi(n)} \equiv 1 \pmod{n}\), generalizing Fermat's little theorem to composite moduli.