Quantitative Aptitude · Permutations and Combinations
Permutations of Distinct Objects (nPr) for CA Foundation
Updated 1 October 2026 · Fact-checked
A permutation is an arrangement of objects where order matters. The number of ways to arrange r different objects chosen from n different objects in a row is nPr = n! ÷ (n − r)!. For restrictions, glue 'together' objects into one block, and subtract for 'never together'.
Understand Permutations of Distinct Objects
A permutation is an arrangement. If you line up people for a photo, the order matters: A-B-C is different from C-B-A. Permutations count such ordered arrangements.
Suppose you have n different objects and want to fill r places in a row. The first place can be filled in n ways. The second in (n − 1) ways, because one object is used. The third in (n − 2) ways. You keep multiplying until r places are filled. This gives nPr = n × (n − 1) × ... × (n − r + 1), which equals n! ÷ (n − r)!.
If you arrange all n objects, then r = n and the answer is n!. This is because 0! = 1, so nPn = n!. Also nP0 = 1 and nP1 = n.
Permutation versus combination: in a permutation, order matters (arranging, ranking, forming codes or words). In a combination, only the group matters (selecting a committee). Ask yourself: if I swap two items, do I get a different outcome? If yes, use permutations.
Restriction problems add a condition. 'Always together' means treat those objects as one block, arrange the block with the others, then arrange inside the block. 'Never together' for two objects means total arrangements minus the arrangements where they are together. For more than two objects, be careful: 'not all together' and 'no two adjacent' are different conditions.
Key formulas to remember
- Permutation of r out of n distinct objects
- nPr = n! ÷ (n − r)! = n(n − 1)(n − 2)...(n − r + 1)
- Valid for 0 ≤ r ≤ n, with objects all different and no repetition.
- Arranging all n distinct objects
- nPn = n!
- Uses 0! = 1.
- Special values
- nP0 = 1, nP1 = n
- nP1 = n because one place can be filled in n ways.
- Always together
- (n − k + 1)! × k!
- k specified objects out of n, all arranged in a row. Block counts as one object; k! is the inside order.
- Not all together (k specified objects)
- n! − (n − k + 1)! × k!
- Total arrangements minus the arrangements where all k are together. For k = 2 this is the same as 'the two are never together'. For k > 2 it does not mean no two are adjacent.
- Two objects never together (shortcut)
- (n − 2)! × (n − 1)P2
- Arrange the other n − 2 objects, then choose 2 of the n − 1 gaps in order. Gives the same value as n! − 2 × (n − 1)!.
- No two of k objects adjacent (gap method)
- (n − k)! × (n − k + 1)Pk
- Arrange the other n − k objects, which creates n − k + 1 gaps. Place the k objects in different gaps, in order. For k = 2 it matches the shortcut above.
- Recurrence
- nPr = n × (n − 1)P(r − 1)
- Useful for quick checks.
How to solve Permutations of Distinct Objects questions
Use this method for any permutation question with distinct objects.
- 1Decide if order matters. If the question asks to arrange, rank, form words or numbers, it is a permutation.
- 2Identify n (total distinct objects available) and r (places to fill).
- 3Check for repetition. If objects can repeat, the nPr formula does not apply; fill each place separately.
- 4If there is no restriction, compute nPr = n! ÷ (n − r)!, or multiply r descending terms starting from n.
- 5For 'always together', form one block of the k objects. Arrange the block with the rest, then multiply by k! for the order inside the block.
- 6For 'two objects never together' (or 'not all together'), find total arrangements and subtract the 'together' count. If the question means no two of k > 2 objects adjacent, use the gap method instead.
- 7For restrictions on position (first place fixed, digit not zero first), fill the restricted place first, then the rest.
- 8Match your answer with an option and check that it is a sensible size.
Quickest way: Place-filling and option elimination
When to use it: Use in MCQs when n and r are small and the options differ widely in size.
- Write r boxes and put the number of choices in each box, starting with the restricted box.
- Multiply the numbers. This is faster than factorials for small r, for example 7P3 = 7 × 6 × 5 = 210.
- For 'together' questions, reduce the count of objects first: k objects together means n − k + 1 units.
- For 'never together' with two objects, compute total minus together. The answer must be less than n!, so drop options that are larger.
- Check the last digit: if the product ends in 0 or the number must be divisible by k!, eliminate options that fail.
- If a question takes more than about two minutes, skip it. A wrong answer costs 0.25 marks.
Common mistakes in Permutations of Distinct Objects
Using nCr instead of nPr.
Students do not check whether order matters.
Fix: Swap two items mentally. If the outcome changes, use nPr. Remember nPr = nCr × r!.
Forgetting the inside arrangement of the block in 'always together'.
Students stop after arranging the block with other objects.
Fix: Always multiply by k! for the objects inside the block.
Computing 'never together' as n! − (n − 1)!.
Students forget to multiply the together count by the inside order.
Fix: For two objects use n! − 2 × (n − 1)!. For k objects 'not all together', use n! − (n − k + 1)! × k!.
Using n! − (n − k + 1)! × k! when the question says no two of k objects can be adjacent.
For k > 2 this formula only removes the cases where all k are in one block. It still counts arrangements where some two are adjacent.
Fix: Read the condition carefully. For no two adjacent, use the gap method: (n − k)! × (n − k + 1)Pk.
Writing nPr = n! ÷ r! or n! ÷ (n − r).
Mixing up with nCr, or missing the factorial on the denominator.
Fix: Denominator is (n − r)! only. Test with 5P2 = 20.
Allowing zero in the first place of a number.
Students apply nPr directly to digits 0–9.
Fix: Fill the first place with a non-zero digit first, then fill the remaining places from the leftover digits.
Worked examples
Example 1
In how many ways can 5 different books be arranged on a shelf if two particular books must always be together? Options: (a) 24 (b) 48 (c) 120 (d) 240
Show the solution
- Treat the two particular books as one block. Now there are 5 − 2 + 1 = 4 units.
- Arrange 4 units: 4! = 24 ways.
- The two books inside the block can be arranged in 2! = 2 ways.
- Total = 24 × 2 = 48.
Answer: (b) 48
Example 2
How many ways can 6 different people stand in a row if two particular people A and B must never stand together? Options: (a) 240 (b) 360 (c) 480 (d) 720
Show the solution
- Total arrangements = 6! = 720.
- A and B together: block plus 4 others = 5 units, so 5! = 120. Inside the block 2! = 2. Together = 240.
- Never together = 720 − 240 = 480.
- Check with the gap method: arrange the other 4 in 4! = 24 ways, creating 5 gaps. Place A and B in 2 different gaps: 5P2 = 20. Total = 24 × 20 = 480.
Answer: (c) 480
Example 3
How many 3-digit numbers can be formed from the digits 1, 2, 3, 4, 5, 6 without repeating any digit, if the number must be even? Options: (a) 40 (b) 60 (c) 80 (d) 120
Show the solution
- The number is even, so the units place must be 2, 4 or 6: 3 choices.
- After fixing the units digit, 5 digits remain for the hundreds place: 5 choices.
- Then 4 digits remain for the tens place: 4 choices.
- Total = 3 × 5 × 4 = 60.
Answer: (b) 60
Exam tips
- Read the key words: 'arrange', 'form numbers' or 'rank' signal permutation; 'select' or 'choose' signals combination.
- Fill the restricted place first. This single habit prevents most errors in digit and position questions.
- For 'never together' with two objects, compute total minus together, and then eliminate any option larger than the total. With three or more objects, check whether the question means 'not all together' or 'no two adjacent'.
- Know small values of n! by heart: 4! = 24, 5! = 120, 6! = 720, 7! = 5040.
- Do not spend more than two minutes on a long question. With negative marking, skip and return if time permits.
Practice questions from Permutations and Combinations
- A surveyor marks 10 points on a plot map, of which exactly 4 lie on one straight line and no other three are collinear. How many triangles c…
- A password must contain exactly 8 characters: a mix of digits (0–9) and uppercase English letters (A–Z). The first character must be a lette…
- A shopkeeper in Jaipur distributes 10 identical laddus among 3 children so that each child gets at least one laddu. In how many ways can thi…
- How many 4-digit numbers can be formed using the digits 1, 2, 3, 4, 5, 6 where no digit is repeated?
- How many distinct arrangements of the letters of the word COMMITTEE are there in which all the vowels stay together?
Permutations of Distinct Objects: frequently asked questions
What is the formula for nPr in CA Foundation?
nPr = n! ÷ (n − r)!, where n is the number of distinct objects and r is the number you arrange, with 0 ≤ r ≤ n. It equals n × (n − 1) × ... × (n − r + 1). For example, 6P2 = 6 × 5 = 30.
What is the difference between permutation and combination?
A permutation counts arrangements, so order matters. A combination counts selections, so order does not matter. They are linked by nPr = nCr × r!.
How do I solve 'always together' problems?
Tie the objects that must be together into one block and count the block as a single object. Arrange all units, then multiply by the number of ways to arrange the objects inside the block. For k objects out of n, the answer is (n − k + 1)! × k!.
How do I solve 'never together' problems?
For two objects, find the total number of arrangements and subtract the arrangements in which the two are together. For k objects, this subtraction gives the count where they are not all together. If the question says no two of the k objects may be adjacent, use the gap method: (n − k)! × (n − k + 1)Pk.