I need to prove that $f: \mathbb{Z}^+ \times \mathbb{Z}^+ \rightarrow \mathbb{Z}^+$, $f(x) = \frac{(m+n-2)(m+n-1)}{2} + m$ is injective.
Start off by $(a,b) \ne (c,d) \implies f(a,b) \ne f(c,d)$
After plugging this in, I get: $$\frac{(a+b-2)(a+b-1)}{2}+a = \frac{(c+d-2)(c+d-1)}{2}+c$$
$$a^2 + 2ab - a - 3b + b^2 = c^2 + 2cd - c - 3d + d^2$$
Can anyone give a hint on how to proceed from here?
However, the original author then stated that this should be $\ge a+1$ and I'm not sure how they arrived to that conclusion. What would be the analogous inequality in my case, and why?
– john doe Jun 14 '23 at 15:31