Question 1:
Denote $a \mod b$ as $a \% b$, where $a$ and $b$ are some integers
Evaluate 12^32475 % 21
The following is what I tried:
12^32475 % 21 = (12^3 % 21)^10825 % 21 = 6^10825 % 21 = ... = 6^433 % 21
But how to continue ?
Question 2:

I don't understand this: n-1= -1 mod n. Where is this from? And does this line become the next line?
Context: my class is discrete math for computer science. So far for related topics, it covers modular inverse, (extended) GCD algorithm, Fermat's Little Theorem and Chinese Remainder Theorem (CRT).
We use the fact that $6^{433} \equiv 0 \mod 3$ and $6^{433} \equiv (-1)^{433} \equiv -1\mod 7 $.
Taking $6^{433} = 3k$ ,
$$3k \equiv -1\mod 7 \implies k \equiv 2\mod 7$$
Hence $6^{433} = 3(\,7\lambda + 2\,) = 21 \lambda + 6$.
So $$6 ^{433} \equiv 6 \mod 21$$