UPSC CSE 2022 CSAT · Question 55
UPSC CSE 2022 CSAT question on Permutations Combinations PIN Numeric
CSAT is a qualifying paper.
- ExamUPSC CSE - CSAT
- Year2022
- PaperCSAT (General Studies Paper II)
- SubjectBasic numeracy
- TopicPermutations and combinations
- DifficultyMedium
There is a numeric lock which has a 3-digit PIN. The PIN contains digits 1 to 7. There is no repetition of digits. The digits in the PIN from left to right are in decreasing order. Any two digits in the PIN differ by at least 2. How many maximum attempts does one need to find out the PIN with certainty?
Show answer
Answer: C. 10
Solution
- Because the digits are in decreasing order, each set of 3 digits gives exactly one PIN. So count sets of 3 digits from 1 to 7 with neighbours differing by at least 2.
- List them by the largest digit:
- 5: 531
- 6: 631, 641, 642
- 7: 731, 741, 742, 751, 752, 753
- Total = 1 + 3 + 6 = 10 possible PINs, so 10 attempts guarantee success.
Why the other options are wrong
- (a) 6: counts only the PINs starting with 7.
- (b) 8: misses two valid PINs, such as 531 and 642.
- (d) 12: includes PINs with neighbouring digits only 1 apart.
Quick trick
- Choosing k digits from n with gaps of at least 2: C(n − k + 1, k) = C(5, 3) = 10.
Remember
When order is forced (increasing or decreasing), count selections, not arrangements.
Hence the answer is (c).
Share
Ask Atlas (3) for similar questions
- Permutations Combinations Arranged Row — Same idea: choosing non-adjacent items from a row, so no two consecutive positions are selected.
- Permutations Combinations Arranged Row — Same pattern: arranging items in a row so that certain ones are never next to each other.
- Permutations Combinations Selections Consecutive — Similar selection-counting with positional restrictions on items arranged in a cycle.
← Full UPSC CSE 2022 CSAT paper · All Basic numeracy questions