I'm implementing a Merkle-Hellman cryptosystem and I have a question about a small detail.
In order for it to work, all potential subsets of the super-increasing sequence must have distinct sums. That is very easy to prove because the set is super-increasing.
However, I assume it to be true that these sums times r modulo q (where q is larger than any of the sums and r and q are relatively prime) are also distinct, but I can't prove it.
Basically, this is what I need proven:
Given two integers x and y.
For any q larger than x and y, choose r such that gcd(r, q) = 1.
Prove that: x * r ≢ y * r (mod q)
Any help would be greatly appreciated. Thanks!