Skip to main contentSkip to solution

If A={1,2,3,4,...,n}A = \{1, 2, 3, 4, ..., n\} and B={x,y}B = \{x, y\}, then the number of surjections from A to B is

Solution

Correct Option: 2

Set A={1,2,3,4,...,n}A = \{1, 2, 3, 4, ..., n\} has nn elements.

Set B={x,y}B = \{x, y\} has 22 elements.

A surjection (onto function) requires every element in BB to be mapped to by at least one element from AA. Both xx and yy must be used.


Each element in AA can map to either xx or yy, giving 2 choices per element.

Total functions from AA to BB:

=2×2×2×... (n times)= 2 \times 2 \times 2 \times ... \text{ (n times)}

=2n= 2^n


A function is not surjective when at least one element in BB is not mapped to.

Case 1: All elements from AA map only to xx (y is unused)

Number of such functions =1= 1

Case 2: All elements from AA map only to yy (x is unused)

Number of such functions =1= 1

Total non-surjective functions =1+1=2= 1 + 1 = 2


Number of surjections from AA to BB:

=Total functionsNon-surjective functions= \text{Total functions} - \text{Non-surjective functions}

=2n2= 2^n - 2

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question