Example. Cardinality of the product [00LY]

For all m,n:\mathbb {N}, we have {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}} \cong {\mathopen {}\left [m\cdot n\right ]\mathclose {}}.

We can prove this from a combinatoric point of view.

We can also prove this isomorphism more formally by means of a specific bijection.

We do need to check that I{\mathopen {}\left (i,j\right )\mathclose {}}< m\cdot n for all i<m and j<n. The maximimum value of I is naturally I{\mathopen {}\left (m-1,n-1\right )\mathclose {}}:

\begin {aligned} I{\mathopen {}\left (m-1,n-1\right )\mathclose {}} &= m\cdot {\mathopen {}\left (n-1\right )\mathclose {}} + {\mathopen {}\left (m-1\right )\mathclose {}} \\ &= m\cdot n - m + m - 1 \\ &= m\cdot n - 1 \\ &< m\cdot n \end {aligned}

The inverse function I^{-1}\colon {\mathopen {}\left [m\cdot n\right ]\mathclose {}}\to {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}} takes i<m\cdot n to the pair {\mathopen {}\left (\operatorname {rem}{\mathopen {}\left (i,m\right )\mathclose {}}, \operatorname {quo}{\mathopen {}\left (i,m\right )\mathclose {}}\right )\mathclose {}}.