there have been many complex modular arithmetic problems, like this one from a book i read, called 1001 mathematics(great book on math, i must say):
A girl has a certain number of pennies. When they are divided in 5's, 3 are left over. when they are divided in 4's, 2 are left over. when they are divided in 3's, 1 is left over. how many pennies could there be?(28)
the way i solved this is by using modular arithmetic, which took a long while. i got this equation:
$$ \begin{align} &X \mod 3=1\\ &X \mod 4=2\\ &X \mod 5=3\\ &X=28 \\ &28 \mod 3=1\\ &28 \mod 4=2\\ &28 \mod 5=3 \end{align} $$
this took me about 10 minutes. but for more complex ones, this is super slow. is there any faster way to do this?