Let $m$, $k$, and $n$ be integers with $m \geq 2$ being even.
Let $a := mk^2 + mkn$ and $b := mkn + \frac{n^2m}{2}$.
How can I simplify $\gcd(a, b)$? Namely, how can I simplify
$$\gcd\left(mk^2 + mkn,\ mkn + \frac{n^2m}{2}\right)$$
Or, alternatively, which constraints on $m$, $k$, and $n$ lead to $gcd(a, b) = 1$ as I want $a$ and $b$ to be coprime.
I know
- $mk \mid (mk^2 + mkn)$, and
- $m \mid (mkn + \frac{n^2m}{2})$ if $m \mid \frac{n^2m}{2}$
- $m \mid \frac{n^2m}{2}$ if $n$ is even (i.e. $2 \mid n$)
From this I can conclude that if $n$ is even, then $m | a$ and $m | b$, go $\gcd(a, b)$ is at least $m \geq 2$, but I want $\gcd(a, b) = 1$, so $n$ can't be even. This is one constraint. Are there others? And if so, what are they and how can I figure them out.
Same question for the scenario where $m \geq 1$ is odd and
- $a := mk^2 + 2mkn$
- $b := 2mkn + 2n^2m$
What constraints on $m, k, n$ lead to $\gcd(a, b) = \gcd(mk^2 + 2mkn, 2mkn + 2n^2m) = 1$
In this case:
- $mk \mid a$
- $2mn \mid b$
Is it fair to say that $\gcd(a, b) \geq \gcd(mk, 2mn) = m \cdot \gcd(k, 2n)$?
At the very least, we can say $\gcd(a, b)$ is at least $m >= 1$. Since I want $\gcd(a, b) = 1$, that means $m$ must equal $1$.
Would $\gcd(k, 2n) = 1$ be a constraint as well?
Let $a := k$; $b := k+2n$; $c := 2n$; and $d := k+n$. Also, let $x := ab = k(k+2n)$ and $y := cd = 2n(k+n)$.
For scene 2, proving $1 = m(x, y) \iff m=1=(k, 2n)$ requires proving A) $1 = m(ab, cd) \Rightarrow m=1=(a, c)$ and B) $1 = m(ab, cd) \Leftarrow m=1=(k, 2n)$.
Re A), I know that $1 = m(x, y) \Rightarrow m = 1$, but how was it proven that $1 = m(ab, cd) \Rightarrow 1 = (a, c)$?
– joseville May 07 '22 at 17:25So if we assume $(ab, cd) = 1$, then that implies $(a, c) = 1$?
– joseville May 07 '22 at 20:48