Let (Tk)k∈N be the sequence of triangular numbers and define
h:N×N→N,h(m,n)=Tm+n+m.
Below, claim numbers for addition on N refer to Arithmetic of Addition on the Natural Numbers and claim numbers for the order on N to Properties of the Order on the Natural Numbers.
Step 1: h is injective. Let (m,n),(m′,n′)∈N×N with h(m,n)=h(m′,n′), and put k=m+n and k′=m′+n′. By claim 6 of the order lemma, m<m+n=k and likewise m′<k′.
Suppose k<k′. By claim 7 of the order lemma there is j∈N with k′=k+j, and 1≤j by claim 4, so k+1≤k+j=k′ by claim 6. If k+1=k′ then Tk+1=Tk′, and if k+1<k′ then Tk+1<Tk′ by claim 3 of Triangular Numbers; in either case Tk+1≤Tk′. Using Tk+1=Tk+k+1 (claim 2 of that lemma) and claim 6 of the order lemma repeatedly,
h(m′,n′)=Tk′+m′ ≥ Tk+k+1+m′ > Tk+k > Tk+m = h(m,n).
Here the second inequality is claim 6 applied to Tk+k and the summand 1+m′, after rearranging Tk+k+1+m′ as (Tk+k)+(1+m′) by associativity and commutativity (claims 3 and 4 of the addition lemma); the third uses m<k: writing k=m+i with i∈N (claim 7) and rearranging by claim 3, Tk+k=(Tk+m)+i>Tk+m by claim 6. This contradicts h(m,n)=h(m′,n′), so k<k′ is impossible; exchanging the roles of the two pairs shows k′<k is impossible as well. By trichotomy (claim 3 of the order lemma), k=k′.
Consequently Tk+m=Tk+m′, so m=m′ by commutativity and cancellation (claims 4 and 5 of the addition lemma). Then m+n=k=k′=m+n′ gives n=n′ in the same way. Hence h(m,n)=h(m′,n′) implies (m,n)=(m′,n′).
Step 2: conclusion. N is countable by claim 1 of Basic Properties of Countable Sets. Applying claim 5 of that lemma to the injective map h:N×N→N shows that N×N is countable.