Back to MSQE practice
PEAMCQEasy

2022 PEA Q23

f:ABf : A \to B with A=5|A|=5, B=2|B|=2. How many onto functions?

Reveal answer and solution

Answer

D

Solution

  1. 1

    Total functions from AA to BB: 25=322^5 = 32. Subtract the 22 functions that are not onto

  2. 2

    (constant maps to {1}\{1\} or to {2}\{2\}): 322=3032 - 2 = 30.

Answer structure / marking notes

By inclusion--exclusion, the number of onto maps is k=0B(1)k(Bk)(Bk)A\sum_{k=0}^{|B|}(-1)^k \binom{|B|}{k}(|B|-k)^{|A|}.

Content note

Imported from public/resources/isi/msqe/solutions/pea/2022/ISI_MSQE_PEA_2022_Solutions.tex. Question wording is retained from the available local TeX source; incomplete option blocks or ambiguous source status are flagged for review.