Example. [00E9]

Solve for x: 3x + 19 \equiv _7 2(x - 73) We can solve this as follows:

3x + 19 \equiv _7 2(x - 73)
\to \quad \quad \quad { distribute }
3x + 19 \equiv _7 2x - 146
\to \quad \quad \quad { reduce 19 and -146 modulo 7 }
3x + 5 \equiv _7 2x - 6
\to \quad \quad \quad { subtract 5 from both sides }
3x \equiv _7 2x - 11
\to \quad \quad \quad { subtract 2x from both sides }
x \equiv _7 - 11
\to \quad \quad \quad { -11 \equiv _7 3 }
x \equiv _7 3

It is worth taking a moment to spell out the reasons we are allowed to, say, replace 3x + 19 with 3x + 5 above. Since 3x \equiv _7 3x and 19 \equiv _7 5, we can add these to conclude 3x + 19 \equiv _7 3x + 7. In fact, given any expression made up of only addition, subtraction, and multiplication, we can replace any part of the expression with something else equivalent. For example, 3x + y(1 + 19(x - 2)) \equiv _7 3x + y(1 + 5(x - 2)).