Exercise · ZW-COUNTABLE-SET-010 · ★★★ Advanced
Which of these functions is a bijection from \(\mathbb{N}\times\mathbb{N}\) onto \(\mathbb{N}\)?
Choose one option.
Show answer
- A. \(f(m,n)=\frac{(m+n)(m+n+1)}{2}+n\)
Exercise · ZW-COUNTABLE-SET-010 · ★★★ Advanced
Choose one option.
Cantor's function \(\frac{(m+n)(m+n+1)}{2}+n\) runs through the diagonals \(m+n=k\) in order and is a bijection. The product \(m\cdot n\) and the sum \(m+n\) repeat values, and \(2^m3^n\) never reaches \(5\).
A set is countable if it is finite or equipotent to \(\mathbb{N}\), that is, if its elements can be listed in a sequence.