The idea

A number is a string of digits with one extra rule: the first digit is not . Every question adds conditions on some places (last digit even, odd digits at odd places, digit sum fixed). Count by filling places one at a time and multiplying the choices.
Textbook vs exam method
Textbook method
- Decide whether digits may repeat ( style) or not ( style).
- Fill the restricted places first, then the free places from what is left.
- If a restriction interacts with (last digit removes the leading-zero problem), split into cases and add.
- For 'at least one' conditions use total minus complement.
Exam method
- Last digit first, then the first digit. even/divisible by from a set with : ; check one case with .
- Bounds. below with digits : all lengths - () plus -digit starting with (): .Indore 2019
- Odd digits at odd places. the first place is odd, so is no problem: .Indore 2021
- Digit sum for 3-digit numbers. for ; above subtract the cases where a digit exceeds (or count by the hundreds digit).
- Sum of all numbers formed. .
Worked examples
-digit numbers from without repetition
.
(d2, JIPMAT 2025) -digit even numbers from -, no repetition
units or , then : .
(d2, Indore 2021 Q23) -digit numbers, distinct digits, only odd digits at odd places
.
(d2, Indore 2019 Q54) numbers below written with and only
.
(d3, Indore 2025 Q12) integers above , divisible by , from without repetition
.
Traps
- A leading ; one case of the last digit forgotten; the boundary digit in 'greater than'; numbers of other lengths.
Formulas
In the exam
- Fill the most restricted place first: last digit for 'divisible by 5 / even', first digit for 'no leading zero' or 'greater than'.
- When 0 is in the set and the last digit is restricted, split into 'ends in 0' and 'ends in a non-zero allowed digit'.
- 'At least one repeated / at least one 7' = all numbers minus the complement (all distinct / no 7).
- Below a bound: every shorter number counts; compare the numbers of full length digit by digit (Indore 2019: 190).
- Divisible by 4: list the allowed last-two-digit endings; divisible by 3: choose the digit set by its digit sum first.
Before this
What the exams ask here
- numbers > 5000 divisible by 5 from {1,3,5,7,8,9}
- three-digit with digit sum 10
- five-digit numbers with placement rules