Clear Notion Academy

One-One, Onto and Bijective Functions, and Counting Functions — DPP: Let A = 1, 2, 3, 4, 5 . How many functions f : A A are neither one-one nor onto?

Question

Let A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}. How many functions f:A→Af : A \to A are neither one-one nor onto?

Options

  1. 30053005
  2. 31253125
  3. 31203120
  4. 30003000

Answer

Correct option: A

Hint

On a finite set mapped to itself, one-one and onto are equivalent, so 'neither' is exactly the complement of the bijections.

Solution

For f:A→Af : A \to A with AA finite, ff is one-one if and only if it is onto (finite pigeonhole argument). So 'neither one-one nor onto' is exactly the set of functions that are not bijections. Total functions from AA to AA: 55=31255^{5} = 3125. Bijections: 5!=1205! = 120. Required count =3125−120=3005= 3125 - 120 = 3005.

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