Prove that the function f is surjective, where š: š ā š such that
Ā f(n)={(n + 1)/2,Ā if n is odd n/2, Ā if n is even
Ā
Is the function injective? Justify your answer.
CBSE Class 12 Sample Paper for 2023 Boards
CBSE Class 12 Sample Paper for 2023 Boards
Last updated at August 12, 2026 by Teachoo
Transcript
Question 21 (Choice 2) Prove that the function f is surjective, where š: š ā š such that š(š)={ā((š + 1)/2, šš š šš ššš@&š/2, šš š šš šš£šš)⤠Is the function injective? Justify your answer. Check onto (surjective) f (n) = {ā((š + 1)/2 ", if n is odd" @š/2 ", if n is even" )⤠for all n ā N Let f(x) = y , such that y ā N When n is odd y = (š + 1)/2 2y = n + 1 2y ā 1 = n n = 2y ā 1 Hence, for y is a natural number , n = 2y ā 1 is also a natural number When n is even y = š/2 2y = n n = 2y Hence for y is a natural number , n = 2y is also a natural number Thus, for every y ā N, there exists x ā N such that f(n) = y Hence, f is onto (surjective) Check one-one (injective) f (n) = {ā((š + 1)/2 ", if n is odd" @š/2 ", if n is even" )⤠for all n ā N. f(1) = (1 + 1)/2 = 2/2 = 1 f(2) = 2/2 = 1 Since, f(1) = f(2) but 1 ā 2 Both f(1) & f(2) have same image 1 ā“ f is not one-one (not injective)