- #1
Kreizhn
- 743
- 1
Homework Statement
I have a function [itex] f: \mathbb Z_p \times \mathbb Z_p \to \mathbb Z_p [/itex] for some prime p. I am given [itex] (r_1, r_2) \in \mathbb Z_p \times \mathbb Z_p\setminus_{\left\{0,0\right\} } [/itex], and told that
[itex] f(a_1, a_2) = f(b_1,b_2) \Leftrightarrow (a_1,a_2)-(b_1,b_2) = m (r_1,r_2) [/itex]
for some integer m. That is, their difference is an integer multiple of [itex] (r_1, r_2) [/itex]. I need to find some way of converting this statement into binary, specifically something using XOR.
The Attempt at a Solution
I've been trying different things, such as [itex] f(a_1,a_2) = f(b_1,b_2) \Leftrightarrow (a_1,a_2) \oplus (b_1,b_2) = (r_1,r_2) [/itex] but I'm not even sure how to check if this is correct. Any ideas?