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\)

Explanation

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\).

Study Set theory in ZWMath →

Review the concept: Countable set

A set is countable if it is finite or equipotent to \(\mathbb{N}\), that is, if its elements can be listed in a sequence.

\[A \text{ numerable} \iff A \text{ finito} \lor A\sim\mathbb{N}\]

More practice problems: countable set

← ZW-COUNTABLE-SET-009