I am having a lot of trouble with this proof. Here is what I've got:
Let $a,b,c,d,r,p$ be positive.
$p|ra-b$ and $p|rc-d$ imply $$p|r(ad-bc)$$
If $gcd(p,r) = 1$, we are done. So suppose $gcd(p,r) = l$ for $l\not=1$. We then get that $l|p$ and $l|r$ imply $l|b$ and $l|d$ and so $$l|(ad-bc)$$
Notice that $px+ry = l$ for some $x,y$, and thus $pxj+ryj = lj = (ab-bc)$ for some $j$. Thus if $p|r$, we are done.
Now, what if $p\nmid r$, what can I do then? I am very stuck.
note: $p$ doesn't have to be prime.
while i < 5: p = random.randint(1, 1000) a = random.randint(1, 1000) b = random.randint(1, 1000) c = random.randint(1, 1000) d = random.randint(1, 1000) r = random.randint(1, 1000)
– Mani Jul 02 '23 at 17:50