I am trying to prove that $\operatorname{lcm}(a, b) = \frac{ab}{\operatorname{gcd}(a,b)}$ for $a, b \in \mathbb{N}$.
The proof I came up with goes as follows.
Denote $m = \frac{ab}{\operatorname{gcd}(a,b)}$. Then $a$ and $b$ divide $m$ since $m = a \cdot \frac{b}{\operatorname{gcd}(a,b)}$ and $\frac{b}{\operatorname{gcd}(a,b)}$ is an integer by definition of $\operatorname{gcd}$. Divisibility of $m$ by $b$ obtained in the symmetrical way. Therefore, $m$ is a common multiple of $a$ and $b$.
Let $n < m$ be a common multiple of $a$ and $b$. Then $a = \frac{ab}{n}\cdot \frac{n}{b}$ and since $n$ is a multiple of $b$, it follows that $\frac{ab}{n}$ is a divisor of $a$. Symmetrically, we establish that $\frac{ab}{n}$ divides $b$. But since $\frac{ab}{n} > \frac{ab}{m}$, we have a common divisor of $a$ and $b$ that exceeds $\operatorname{gcd}(a,b)$, and we have arrived at a contradiction. Therefore, $m$ is the smallest multiple of both $a$ and $b$.
I feel my proof is flawed, but I am quite unable to catch any errors, so I came here for help, which I hope to receive.
Thank you.
Update: there is a requirement of not using the Fundamental theorem of arithmetic.
Update: the proof is valid after all, and is a variation of one using cofactor reflection symmetry.
solution-verification
question to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be used as a proof checking machine. – Bill Dubuque Oct 03 '23 at 20:10