Clear Notion Academy

One-One, Onto and Bijective Functions, and Counting Functions — DPP: How many onto (surjective) functions are there from a 4 -element set A to a 3 -element…

Question

How many onto (surjective) functions are there from a 44-element set AA to a 33-element set BB?

Options

  1. 3636
  2. 8181
  3. 6464
  4. 3333

Answer

Correct option: A

Hint

Use inclusion-exclusion on the outputs that get missed: ∑k=0n(−1)k(nk)(n−k)m\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(n-k)^{m}.

Solution

Onto functions from an mm-element set to an nn-element set: ∑k=0n(−1)k(nk)(n−k)m\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(n-k)^{m}. Here m=4m=4, n=3n=3: 34−(31)24+(32)14−(33)043^{4} - \binom{3}{1}2^{4} + \binom{3}{2}1^{4} - \binom{3}{3}0^{4}. =81−3(16)+3(1)−0=81−48+3=36= 81 - 3(16) + 3(1) - 0 = 81 - 48 + 3 = 36.

More questions from One-One, Onto and Bijective Functions, and Counting Functions — DPP

Practise the full set: One-One, Onto and Bijective Functions, and Counting Functions — DPP