if $n>1$ odd number,find $$2^n\equiv ?\pmod {12}$$
it seem the answer is $8$,because $$2^3=8\equiv 8\pmod{12}$$ $$2^5=32\equiv 8\pmod {12}$$ $$2^7=128\equiv 8\pmod {12}$$ $$2^9=512\equiv 8\pmod {12}$$ $$\cdots $$ But How to prove it for all postive integers $n$?
To be precise, we want to prove that if $n$ is an odd number $\geq 3$, then $$2^n\equiv 8\pmod{12}.$$ Since you've verify the initial case $n=3$, we assume if $k\geq3$ is an odd number and $2^k\equiv 8\pmod{12}$ holds, then $$2^{k+2}\equiv 8\times 4\equiv 32\equiv 8\pmod{12}$$ holds as well. Hence we completed the proof by induction.