Number of onto functions ?

Let A = [ x 1 , x 2 , x 3 , x 4 , x 5 ] A=[x_1,x_2,x_3,x_4,x_5] and B = [ y 1 , y 2 , y 3 , y 4 ] B=[y_1,y_2,y_3,y_4] .

A function f f be defined from A A to B B .

If, f ( x 1 ) = y 1 f(x_1)=y_1 & f ( x 2 ) = y 2 f(x_2)=y_2 ,

then what is the number of onto functions defined from A A to B B ?

Note:

The figure (in the pic) is a rough one. :)


Wanna try more problems on functions ?


The answer is 18.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

With f ( x 1 ) = y 1 f(x_{1}) = y_{1} and f ( x 2 ) = y 2 f(x_{2}) = y_{2} we must have each of y 3 , y 4 y_{3}, y_{4} mapped onto by at least one element of S = S = { x 3 , x 4 , x 5 x_{3}, x_{4}, x_{5} } for f f to be an onto function.

We then have two scenarios to consider:

(i) One element of S S maps onto either y 1 y_{1} or y 2 y_{2} and the other two elements are mapped onto { y 3 , y 4 y_{3}, y_{4} }. As there are 3 3 elements in S S , 2 2 elements in { y 1 , y 2 y_{1}, y_{2} } and 2 2 ways in which an onto function can be mapped between two 2 2 -elements sets, the number of possible onto functions in this scenario is 3 2 2 = 12 3*2*2 = 12 .

(ii) All the elements of S S are mapped to { y 3 , y 4 y_{3}, y_{4} }. The are 2 3 = 8 2^{3} = 8 ways in which the elements of S S can be mapped, two of which result in them all being mapped to either y 3 y_{3} or y 4 y_{4} . Thus there are 8 2 = 6 8 - 2 = 6 onto functions possible in this scenario.

The total number of onto functions under the given conditions is therefore 12 + 6 = 18 12 + 6 = \boxed{18} .

The number of onto functions = ( 5 choose 2) + (4*2) =18.

P.S. Not a level 5 problem.....

What do u mean by 5C2??

Didarul Azam - 5 years, 10 months ago
Parth Tandon
Oct 14, 2014

since f(x1)=y1 $ f(x2)=y2,

no. of onto fun.= 3!/2! 1! multiply by 3! for arrangement.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...