f(n)=[n/2] where [ ] it's integer part of ...
It' a surjective function but it's not injective
because
f(2)=f(3)=1
But for any n from N exist m like :
f(m)=n
N = {1,2,3,4,....}
f(n) = 1 if n is odd
f(n) = n/2 if n is even
f is surjective, but all odd numbers map to 1
Copyright © 2024 1QUIZZ.COM - All rights reserved.
Answers & Comments
Verified answer
f(n)=[n/2] where [ ] it's integer part of ...
It' a surjective function but it's not injective
because
f(2)=f(3)=1
But for any n from N exist m like :
f(m)=n
N = {1,2,3,4,....}
f(n) = 1 if n is odd
f(n) = n/2 if n is even
f is surjective, but all odd numbers map to 1