Exercise · ZW-COUNTABLE-SET-006 · ★★☆ Intermediate

Which of these functions is a bijection from \(\mathbb{N}\) onto \(\mathbb{Z}\)?

Choose one option.

Show answer
  • A. \(f(n)=(-1)^n\lceil n/2\rceil\)

Explanation

\(f(n)=(-1)^n\lceil n/2\rceil\) takes the values \(0,-1,1,-2,2,\dots\), covering \(\mathbb{Z}\) without repetition. \(n-1\) never reaches \(-2\), \(n\) never reaches a negative number, and \(n^2\) neither.

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-005 ZW-COUNTABLE-SET-007 →