I am a bit confused over this and not sure how to rigorously deal with the following proposition:
If $a$ and $b$ are relatively prime numbers and happen to be odd, is it true that $ab(b+a)(b-a)$ will be a multiple of $24$?
I am a bit confused over this and not sure how to rigorously deal with the following proposition:
If $a$ and $b$ are relatively prime numbers and happen to be odd, is it true that $ab(b+a)(b-a)$ will be a multiple of $24$?
$24=8\cdot 3$ so we need to show that $8$ and $3$ divide that number.
First, let's consider $(a+b)(a-b)$. Since $a,b$ are odd, both of these are even. Furthermore, we can check by going through the possible values of $a,b\pmod{4}$ that at least one is a multiple of $4$. $1-1,1+3,3+1,$ and $3-3$ are all $0\pmod{4}$. Since both are even and one is a multiple of four, their product is a multiple of $8$, and so the entire number is.
Now let's show its divisible by $3$. If either $a$ or $b$ are then we are done, so assume not. If $a=b=1\pmod{3}$ then $3|a-b$, and likewise if $a=b=2\pmod{3}$. But if $a$ and $b$ are $1$ and $2\pmod{3}$ in either order, then $a+b=0\pmod{3}$. Thus we are guaranteed that some term is divisible by $3$ and so the entire number is divisible by $3$ and $8$ and therefore $24$. This is because $3$ and $8$ are relatively prime, and so we can use the lemma that if $(a,b)=1$, then $a|bc\iff a|c$
Note: I never used that they are relatively prime, and the second line of reasoning works for any integer $a,b$, not just odd ones.
Here is a method exploiting the fact that powers are often reductible to lesser exponents, especially when working modulo $2$ or $3$.
Let's have $c=ab(a+b)(a-b)=a^3b-ab^3$
We always have $x^3\equiv x \pmod 3\quad$
So $c \pmod 3\equiv ab-ab\equiv 0$.
Now let assume $a,b$ have same parity $r=0$ or $1$ : $\begin{cases}
a=2n+r\\
b=2p+r\\
\end{cases}$
$c=16n^3p+24n^2pr-24np^2r-16np^3+8n^3r+12n^2r^2-12r^2p^2-8rp^3+4r^3n-4r^3p$
$c \pmod 8\equiv 4n^2r^2-4r^2p^2+4r^3n-4r^3p\equiv 4\underbrace{(n^2r^2-r^2p^2+r^3n-r^3p)}_\text{even}\equiv 0$
Because modulo $2$ we always have $x^k\equiv x\pmod 2$ so
$(n^2r^2-r^2p^2+r^3n-r^3p)\equiv nr-rp+rn-rp\equiv 0\pmod 2$
Conclusion if $a,b$ both odd or both even then $c$ is divisible by $24$.