I am having trouble finding mod arithmetic questions.
Can you show how to solve these?
$x + 30 \equiv 1 \pmod {12}$
$30x \equiv 1 \pmod {12}$
$x + 3y \equiv 1 \pmod {12}$ and $2x + y \equiv 7 \pmod {12}$
I am having trouble finding mod arithmetic questions.
Can you show how to solve these?
$x + 30 \equiv 1 \pmod {12}$
$30x \equiv 1 \pmod {12}$
$x + 3y \equiv 1 \pmod {12}$ and $2x + y \equiv 7 \pmod {12}$
$\begin{align} x + 30 & \equiv 1 \pmod {12} \\ \\ x + 30 - 30 &\equiv 1 - 30 \pmod{12} \\ \\ x \equiv -29 \pmod{12} \end{align}$.
Now, we can add any multiple of 12 to $-29$ if we want to find $x \in \{0, 1, 2, \ldots, 10, 11\}$. Specifically, we find that $-29 + 3\cdot 12 = -29 + 36 = 7$. So $x \equiv -29 \equiv 7 \pmod {12}$.
For the next question, we need to find the multiplicative inverse of 30 (modulo $12$) to clear the coefficient of $x$.
$$30x \equiv 1 \pmod {12}$$
Indeed, in this situation, no solution exists.
So, for practice, let's solve $$30x \equiv 1 \pmod {11}$$
$$\dfrac 1{30} \equiv \dfrac {1 + 9\cdot 11}{30} = \frac{100}{30} \equiv \dfrac{100 + 10\cdot 11}{30} = \dfrac {210}{30} = 7$$
This means that $7$ is the multiplicative inverse of $30 \pmod{11}$: $7\cdot 30 \equiv 1 \pmod 11$:
$$7 \cdot 30 x\equiv 7\cdot 1 \pmod{11} \iff x \equiv 1 \pmod {11}$$