If , , then the number of onto functions from to is
Functions · Question 19 of 51
If A = x x N, x ≤ 5 , B = x x Z, x² - 5x + 6 = 0 , then the number of onto functions from A to B is
(A) 2
- Correct answer
(B) 30
(C) 23
(D) 32
Answer: (B) 30
Concept: A function onto must use every element of as an image. When has 2 elements, the only functions that are not onto are the constant ones, so onto functions all functions 2.
Step 1 — List the elements of . Natural numbers start from 1, so the natural numbers not exceeding 5 are:
Step 2 — Find by solving the quadratic. We factorise ; both roots are integers, so both belong to .
Step 3 — Count all functions from to . Each of the 5 elements of can go to 2 or to 3.
Step 4 — Remove the functions that are not onto. A function misses an element of only if it sends everything to 2 or everything to 3. These are the 2 constant functions.
- (A) is wrong: 2 is the number of constant functions, which are exactly the ones that are not onto.
- (C) is wrong: 23 does not come from any correct count of these functions; it has no basis.
- (D) is wrong: 32 counts all functions, including the 2 constant ones that are not onto.
Hence the correct option is (B).
