Exercise · ZW-FUNCTION-011 · ★★★ Advanced
Let \(f:\mathbb N\to\mathbb N\) with \(\mathbb N=\{1,2,3,\ldots\}\) and \(f(n)=n+1\). Is it injective? Is it surjective? Justify.
Choose one option.
Show answer
- B. It is injective but not surjective
Exercise · ZW-FUNCTION-011 · ★★★ Advanced
Choose one option.
If \(n+1 = m+1\) then \(n = m\), so \(f\) is injective. But \(1\) has no preimage, since \(n+1 \geq 2\) for every \(n\) in \(\mathbb{N}\), so it is not surjective.
A function f from A to B assigns to each element of A exactly one element of B. A is the domain and B the codomain.