Bashyboy
- 1,419
- 5
Solve for x: 4x=6(mod 5)
Here is my solution:
From the definition of modulus, we can write the above as \frac{4x−6}{5}=k, where k is the remainder resulting from 4x~mod~5=6~mod~5=k.
Solving for x, x=\frac{5k+6}{4}⟹x(k)=\frac{5k+6}{4}
Now, my teacher said that is incorrect, and that k=...−2,−1,0,1,2,...
I honestly don't understand what is wrong about my answer; and shouldn't k only take on nonnegative values, following from the definition of modulus?
Here is my solution:
From the definition of modulus, we can write the above as \frac{4x−6}{5}=k, where k is the remainder resulting from 4x~mod~5=6~mod~5=k.
Solving for x, x=\frac{5k+6}{4}⟹x(k)=\frac{5k+6}{4}
Now, my teacher said that is incorrect, and that k=...−2,−1,0,1,2,...
I honestly don't understand what is wrong about my answer; and shouldn't k only take on nonnegative values, following from the definition of modulus?