Find the last digit (in base 10) for the number: $$ {3}^{22}$$
This is a question in my course in discrete math. I have checked my notes from the lectures but can't seem to solve this one.
Find the last digit (in base 10) for the number: $$ {3}^{22}$$
This is a question in my course in discrete math. I have checked my notes from the lectures but can't seem to solve this one.
Hint: $3^2=9=−1\bmod10$
Is that enough? I can add more ...
So $3^{22}=(-1)^{11}=-1=9\bmod10$.
Check: $3^{22}=31381059609$
If you do not know modular arithmetic you may use the binomial formula
$$3^{22} = (10-1)^{11} = 10\cdot \underbrace{m}_{m \in \mathbb{N}} + (- 1)^{11}= 10(m-1)+ \boxed{9}$$
So, $9$ is the last digit in base $10$.