Have a question. Can anyone explain how option 4 is "onto"/"surjective" ?
f(n) = n/2 if n is even
= n+1 otherwise.
Per "onto" concept every y that belongs to codomain of f has a unique pre-image x that belongs to domain of f such that y = f(x)
In option 4, f(1) and f(4) have the same value in codomain. So the pre-image x is not unique for y value of 2. So also, are the pairs f(3) and f(8).
How is this surjective ?
Can someone please help understand ?
Thanks
Kalpana