i have this particular question regarding congruence consisting of x,y and z variables. the question is as such: Let x and y be integers such that x≡5(mod 8) and y≡3(mod 8). Find the integer z such that 0 ≤ z ≤7 and 68x+2y^2≡z(mod 8).
since both equations has the modulo of 8, my first attempt was to perform addition of congruences with the x and y:
x+y≡ 8(mod8)
because I'm new to this, I'm not sure how would i proceed on on obtaining the integer z. any tips? I'm pretty sure the Euclidean Algorithm would lead me to find the integer of z in the later stage but I'm confused on the additional equation of 68x+2y^2≡z(mod 8)
You just need to do some calculation $\bmod 8$. It is a lot simpler than you are trying to make it.
$68x+2y^2 \equiv 340+ 18 \equiv 4 + 2 \equiv 6 \bmod 8$
Note that I could have reduced the $68$ before multiplying it in to the $x$, and also could have summed the components before reducing to a remainder over a multiple of $8$:
$68x+2y^2 \equiv 4x+2y^2 \equiv 20+ 18 \equiv 38 \equiv 6 \bmod 8$