How to solve this modulo equation using modulo properties?

66 Views Asked by At

Equation: $[3*(k \mod 4)] \mod 4 = 3$

It's relatively easy to check the equation for the possible values of $k \mod 4$. Is there a more elegant way to calculate the solution, for example by using modulo properties?

1

There are 1 best solutions below

3
On BEST ANSWER

To solve $3k\equiv3\pmod4$, multiply both sides by the inverse of $3\pmod 4$ (which is $3$):

$3k\equiv3\pmod4\implies 3^{-1}3k\equiv3^{-1}3\pmod4\implies k\equiv1\pmod 4$