Quick Recap — Permutations
- Factorial: , with .
- Fundamental principle: if a job has then independent choices, total .
- Permutations (order matters): ; , .
- Arrangements of distinct objects in a row .
Beyond-NCERT JEE Formulae
These results show up routinely in JEE Main but sit just outside the NCERT core. Memorise the small numbers below; each one collapses a multi-step problem into a one-liner.
1. Derangements — no object in its own place
A derangement is a permutation in which no element occupies its original position. The count is with the fast recurrence . Memorise the first five values: , then , , and .
[JEE Tip] Phrases such as "no letter in its correct envelope", "no guest gets their own hat" or "no ball in the matching box" all signal a derangement. If exactly of the objects must stay fixed, the count is .
2. Divisors of
Start from the prime factorisation, then read off three results:
- Number of divisors: .
- Sum of divisors: .
- Product of divisors: , where is the number of divisors found above.
[JEE Tip] The odd divisors of are exactly the divisors of its odd part (delete every factor of ); the even divisors then number .
3. Legendre's formula — a prime inside a factorial
The exponent of a prime in is a finite sum, because every term vanishes once .
[JEE Tip] Trailing zeros of come from factors of ; fives are rarer than twos, so the number of trailing zeros of equals .
4. Distributions into boxes
- distinct objects into distinct boxes, any number per box: .
- identical objects into distinct boxes, each box at least one: .
- identical objects into distinct boxes, empty boxes allowed: .
[JEE Tip] "Distinct objects into distinct boxes" is a function count — each object independently chooses its box — and is not a stars-and-bars problem.
5. Sum of all numbers formed from given digits
Using distinct non-zero digits, each exactly once, the numbers so formed add up to Here is why: by symmetry each digit visits each of the places exactly times, so every place-value column carries the same digit-total .
Solved Examples — Beyond-NCERT Formulae
Example 1 — Derangement of five letters
Problem. Five letters are placed at random into five correctly addressed envelopes, one letter per envelope. In how many ways does no letter go into its own correct envelope?
Solution. With no object in its own place, this is the derangement number : Here and the bracket equals , so . The recurrence gives the same value: .
Answer: ways.
Example 2 — Number and sum of divisors of 360
Problem. Find how many positive divisors has, and the sum of all of them.
Solution. Factorise . The number of divisors is The sum of the divisors is
Answer: has divisors, summing to .
Example 3 — Product of the divisors of 360
Problem. Find the product of all positive divisors of .
Solution. The product of the divisors of is , where is the number of divisors. From Example 2, , so the product is
Answer: .
Example 4 — Exponent of 3 in 100!
Problem. Find the highest power of that divides .
Solution. By Legendre's formula, The next term ends the sum.
Answer: the highest power is .
Example 5 — Trailing zeros of 100!
Problem. In how many zeros does end?
Solution. A trailing zero needs a factor , and factors of are far more plentiful than factors of , so the number of trailing zeros equals the exponent of : The next term ends the sum.
Answer: ends in zeros.
Example 6 — Distributing 10 identical balls into 3 boxes
Problem. In how many ways can identical balls be placed in distinct boxes (a) if empty boxes are allowed, and (b) if every box must hold at least one ball?
Solution. Let the three boxes hold with .
(a) Empty boxes allowed means each :
(b) Every box non-empty means each :
Answer: ways when empties are allowed, and ways when no box may be empty.
Example 7 — Sum of all 4-digit numbers from {1, 2, 3, 4}
Problem. Find the sum of all -digit numbers formed using the digits , each digit used exactly once.
Solution. There are such numbers and the digit sum is . By symmetry each digit stands in each place times, so every place-value column totals . Hence
Answer: .