Solveeit Logo

Question

Mathematics Question on types of functions

The number of surjective functions from AA to BB where A=1,2,3,4A = \\{1, 2, 3, 4 \\} and B=a,bB = \\{a, b\\} is

A

14

B

12

C

2

D

15

Answer

14

Explanation

Solution

If A and B are two sets having m and n elements such that
1nm=r=1n(1)nrnCrrm1 \le n \le m = \sum^{n}_{r=1} (-1)^{n-r} {^nC_{r}} r^{m}
=r=1n(1)2r2Cr(r)4= \sum^{n}_{r=1}(-1)^{2-r} {^{2}C_{r}} (r)^{4}
=(1)212C1(1)4+(1)222C2(2)4=2+16= (-1)^{2-1} {^{2}C_{1}} (1)^{4} + (-1)^{2-2} {^{2}C_{2}} (2)^{4} = -2 + 16
=14= 14