JEE Mains Maths · Permutations and Combinations
Divisibility, Divisors and Factorials
Counting with number theory: the power of a prime in n!, divisors of a given form, how many numbers in a range are multiples of one number but not another, and pairs chosen by their remainders.
Why this matters
Twenty PYQs, fifteen of them numerical answer. Five find the power of a prime in a factorial, ten count multiples or gcd conditions by inclusion–exclusion, and five sort numbers by remainder before pairing them. Three ideas cover the page.
Concept 1 of 3: Powers of a prime in n!, and counting divisors
Definition
- Legendre: .
- Largest with : .
- Divisors of : .
- Odd divisors: set the exponent of 2 to 0.
Legendre's formula
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 1 · Permutations and Combinations · Divisibility, Divisors and Factorials
The scarcer prime decides
Concept 2 of 3: Counting multiples in a range
Definition
- Multiples of in : .
- ; overlap uses the lcm.
- : and .
- Coprime to 24 means not divisible by 2 or 3.
Inclusion–exclusion
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 2 · Permutations and Combinations · Divisibility, Divisors and Factorials
Use the lcm, not the product
Concept 3 of 3: Pairing numbers by their remainders
Definition
- : remainders and .
- Same class (or ): choose two from one class.
- Ordered pairs: count and separately.
- Cycles of powers mod decide divisibility of sums of powers.
Matching classes
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 3 · Permutations and Combinations · Divisibility, Divisors and Factorials
Ordered or unordered
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (3)
- Powers of a prime in n!, and counting divisors
Legendre's formula
- Counting multiples in a range
Inclusion–exclusion
- Pairing numbers by their remainders
Matching classes
Watch out for (3)
- The scarcer prime decides→ Powers of a prime in n!, and counting divisors
- Use the lcm, not the product→ Counting multiples in a range
- Ordered or unordered→ Pairing numbers by their remainders
Test yourself on Permutations and Combinations
20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.