From what you say about the purpose of defining the function, I think it must mean that $f(m,n)$ is the sum of all numbers from $1$ up to $m+n-2$, with an extra $m$ added, which you could write as $f(m,n)=(m+n-2)(m+n-1)/2+m$.
The values of $f(m,1)$ are all the triangular numbers. The values of $f(m,2)$ are all the numbers which are $1$ more than a triangular number greater than $1$, and so on, so the values of $f(m,n)$ for fixed $n$ are all the numbers $k$ for which $k$ is $n-1$ more than the largest triangular number less than or equal to $k$. Thus every positive integer appears once and once only as a value of the function.
The purpose of this is to show that, although $\mathbb N\times\mathbb N$ appears larger than $\mathbb N$, they are essentially the same size (they are both countably infinite), because there is a one-to-one correspondence between their elements.
For sets $S,T$, the product $S\times T$ is the set of all pairs of the form (element of $S$, element of $T$).