Skip to content
Worked Examples · Example 14

Q.Show that a one-one function f:{1,2,3}→{1,2,3}f: \{1, 2, 3\} \to \{1, 2, 3\} must be onto.

Puducherry CbseNCERTSubjective· 3mImportance★★★★★est
40% · 42/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 →

The Pigeonhole Principle forces a one-one function from a finite set to itself to be onto — with 3 inputs and 3 outputs, each output must be used exactly once, so every element in the codomain is hit.

The key idea here is that when you have a function from a finite set to itself, injectivity (one-one) and surjectivity (onto) become equivalent. This is not true for infinite sets, but for finite sets, it’s a direct consequence of counting.

Let’s see why.


1. Understand what’s given

We have f:{1,2,3}→{1,2,3}f: \{1,2,3\} \to \{1,2,3\}, and ff is one-one (injective). That means:

  • Different inputs give different outputs.
  • So f(1),f(2),f(3)f(1), f(2), f(3) are three distinct elements from the set {1,2,3}\{1,2,3\}.

The codomain has exactly three elements: 1, 2, and 3.

2. Apply the Pigeonhole Principle in reverse

The Pigeonhole Principle usually says: if you put more pigeons than holes, some hole gets at least two pigeons. Here, we have the opposite situation — we have exactly as many pigeons as holes (3 inputs, 3 possible outputs), and the function is one-one, so no two pigeons share a hole.

Tip

Think of it this way: you have 3 distinct balls (the outputs f(1),f(2),f(3)f(1), f(2), f(3)) that must be placed into 3 boxes (the elements 1, 2, 3). Since they are all different, each box can hold at most one ball. With 3 balls and 3 boxes, the only way to place them without repetition is to put exactly one ball in each box.

3. Conclude surjectivity

If each of the three boxes (1, 2, 3) gets exactly one ball, then every box is occupied. That means every element of the codomain {1,2,3}\{1,2,3\} appears as f(x)f(x) for some xx in the domain. So ff is onto (surjective). …

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.