I would like to prove that the map $g:A\rightarrow \mathbb{Z}^+ $ defined by $g(a,b)=\frac{1}{2}(a-1)a+b$ is bijective, where $A={\{(a,b):a,b\in\mathbb{Z}^+ and \space b\leq a\}}$.
So far, I'm working on the injection part of my proof: Let $a_1, b_1, a_2, b_2 \in \mathbb{Z}^+$ where $g(a_1, b_1)=g(a_2, b_2)$. So far, I've simplied things down to $a_1^2-a_1+2b_1=a_2^2-a_2+2b_2$, but I'm not sure how I can prove that $a_1=a_2$ and $b_1=b_2$ from here. Could someone nudge me in the right direction?