The function is written as follows $p:\mathbb{N}\times\mathbb{N} \to \mathbb{N}$ where $p(a,b)=(ab(b+1))/2$
So far I tried supposing that $p(a_1, b_1) = p(a_2,b_2)$ but I couldn't reach a conclusion when I subbed it back into the equation. Thanks for the help!
0 is not considered a natural.
Simce, for each $a\in\mathbb N$,$$p\left(\frac{a(a+1)}2,1\right)=p(1,a),$$your function is far from injective. It is surjective, though.