Possible Duplicate:
How does one get the formula for this bijection from $\mathbb{N}\times\mathbb{N}$ onto $\mathbb{N}$?
Countability of cartesian product of $\mathbb{N} \times \mathbb{N}$
How does one come up with an explicit function that maps $\mathbb N\times \mathbb N$ to $\mathbb N$ in order to show that $\mathbb N\times \mathbb N$ is countable?