How do I calculate the remainder of $30^{29} \pmod {51}$? I cant use Fermat's little theorem since $51$ is not a prime number.