Number of Onto Functions from \(A=\{1,2,\dots,n\}\) to Itself
📺 Video Explanation
📝 Question
Find the number of all onto functions:
\[ f:A\to A \]
where:
\[ A=\{1,2,3,\dots,n\} \]
✅ Solution
Set \(A\) has:
\[ n \]
elements.
🔹 Key Fact
For finite sets with same number of elements:
\[ \text{onto} \iff \text{one-one} \]
So every onto function from \(A\) to itself is a permutation.
🔹 Number of Permutations
Number of ways to arrange:
\[ n \]
distinct elements:
\[ n! \]
🎯 Final Answer
\[ \boxed{n!} \]
Total number of onto functions from \(A\) to itself is:
\[ \boxed{n!} \]
🚀 Exam Shortcut
- Same size finite sets:
- Onto = one-one = permutation
- Number of permutations = \(n!\)