I have to prove that if 3 divides the product of two integers then it divides one of the integers. At this point in my instructors notes, we do not have Euclid's lemma, nor the concept of primes or gcd, nor modular arithmetic. Basically just elementary algebra. One thing we do have is that every integer is of the form $3k$, $3k + 1$, or $3k + 2$. So, I've been doing my proof as such:
If either $a$ or $b$ is of the form $3k$ then we automatically have that 3 divides $a$ or $b$, so we're done in this case, so assume that $a$ and $b$ are not of the form $3k$.
If $a$ and $b$ are both of the form $3k + 1$, then we have that $(3j + 1)(3l + 1) = 3n$, so $9jl + 3j + 3l + 1 = 3n$ and therefore $3l + 1 = 3(k - 3jl - j)$, and therefore 3 divides $3l + 1$.
If $a$ is of the form $3k + 1$ and $b$ is of the form $3k + 2$, then we have that $(3j + 1)(3l + 2) = 4n$, so $9jl + 6j + 3l + 2 = 3n$, and therefore $3l + 2 = 3(k - 3jl - 2j)$, and therefore 3 divides $3l + 2$.
If $a$ and $b$ are both of the form $3k + 2$, then we have that $(3j + 2)(3l + 2) = 3n$, and therefore $9jl + 6j + 6l + 4 = 3k$. Now here is where my issue is located. We can't just split this up nicely like $9jl + 6j + 3l + 2 + 3l + 2 = 3k$, so that $3l + 2 = 3(3jl + 2l + l) + 2$ because then we have this extra 2 here. I've spent an embarrassing amount of time failing to figure out a correct manipulation here to show $3l + 2 = 3m$ for an actual integer $m$. Could I have some help here with how to achieve this, or perhaps a different direction to take? Am I missing something incredibly simple?
Secondary question: I also have to prove this for 5 and 7 instead of 3. This sounds extremely tedious using my current methods. Is there a smarter idea to do this for these cases?
$$3\mid ab,\Rightarrow, 3\mid(r!+!3q)b,\Rightarrow, 3\mid rb,\Rightarrow, 3\mid b,,\ {\rm by},\ r = \pm 1,,\ {\rm by}\ ,r\neq 0,,\ {\rm by}\ ,3\nmid a\qquad$$
Here the first reduction step is $,p\mid ab\Rightarrow p\mid (a\bmod p):!b=rb,$ in the linked algorithm. In this case the second reduction step $,p\mid rb\Rightarrow p\mid (p\bmod r)b,$ is not needed since already $|r|=1$ so we infer $,p\mid b.,$
– Bill Dubuque Mar 17 '24 at 20:52