I am still struggling with the modulo operation and have the following two to prove:
- Prove that for all $a_1$, $a_2$, $a_3$ $\in \mathbb N \cup${$0$} this applies: $$100\cdot a_3 + 10\cdot a_2 + a_1 = a_3 + a_2 + a_1 \bmod 3.$$
I used proof by induction here, however got stuck substituting for $n+1$. This is as far as I got:
- Let $a_1$ = 1. Then, $a_{1+1}=a_2 = 2$ and $a_{1+1+1}=a_3 = 3$. Therefore, $$100\cdot (3) + 10\cdot (2) + (1) = 321 = {3+2+1} \bmod 3 = 0$$
- The condition is the following: Let $a_1$ = n. Then, $a_{n+1}=a_2$ and $a_{n+2}=a_3$. Therefore, $$ 100\cdot (a_{n+2}) + 10\cdot (a_{n+1}) + (a_n) = a_{n+2} + a_{n+1} + a_n \bmod 3$$
I hope someone can help me solve for $n+1$ and complete this proof.
- Prove that there exists no $x \in \mathbb Z_{111}$, s.t. $3x\equiv 1$ $\bmod 111.$
Unfortunately, I was unable to progress with this one and hope someone can show me how to approach and solve this problem!
Thank you!!