Skip to content
Miscellaneous Examples · Example 22

Q.Find the number of all one-one functions from set A={1,2,3}A = \{1, 2, 3\} to itself.

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★est
48% · 50/104 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

A one-one function from a set to itself is a permutation. For a 3-element set, the number of such functions is 3!=63! = 6.

The Concept: Counting Functions as Assignments

Think of a function f:A→Af: A \to A as a rule that assigns to each element of AA some element of AA (possibly the same one). For a one-one (injective) function, no two different elements of AA can be assigned the same value. Since the domain and codomain are the same finite set, an injective function from a set to itself is automatically onto as well — it's a bijection, also called a permutation of the set.

So the question reduces to: In how many ways can we rearrange the three elements {1,2,3}\{1,2,3\}?

Step-by-Step

  1. Choose the image of 1.

    The element 11 in the domain can map to any of the 3 elements in the codomain: 1,2,1, 2, or 33.

    So there are 33 choices for f(1)f(1).

  2. Choose the image of 2, given that ff must be one-one.

    Since f(1)f(1) is already taken, 22 cannot map to that same value. That leaves 3−1=23 - 1 = 2 available elements in the codomain.

    So there are 22 choices for f(2)f(2).

  3. Choose the image of 3.

    By now, two distinct values have been assigned to 11 and 22. Only one element of the codomain remains unused.

    So 33 must map to that last remaining element — exactly 11 choice.

  4. Multiply the choices. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.