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?
UPSC Prelims 2022 CSAT Q55: Permutations, combinations and probability
From the UPSC Prelims 2022 · CSAT (GS Paper II) paper. Try it, check your answer, then read the worked solution below.
Answer and worked solution
Try it yourself first, then check your working against this.
Worked solution
The digits are written in decreasing order, so a PIN is just a choice of 3 digits from 1-7 with any two differing by at least 2.
Choosing 3 non-adjacent numbers from 7: (listing confirms: 135, 136, 137, 146, 147, 157, 246, 247, 257, 357 as sets). At most 10 attempts are needed.
(C)
Concepts used: non-adjacent selections
Practise this topic
Every past question tagged to the same part of the syllabus, with solutions.
Similar questions from other papers
Past questions on the same topic (Permutations, combinations and probability), each with a worked solution.
- How many words can one form by shuffling the letters of the word QUEUE, if Q is always followed by U? The words thus formed need not necessarily…UPSC Prelims 2026 (CSAT) · CSAT Q9
- The top of a table is rectangular and its dimensions are 6′ × 10′. Two rectangular portions of the table top are painted in blue colour; both these…UPSC Prelims 2026 (CSAT) · CSAT Q15
- There are four types of weights, namely 1 kg, 2 kg, 5 kg and 10 kg. What is the maximum number of different ways one can measure 20 kg, if at least…UPSC Prelims 2026 (CSAT) · CSAT Q23
- There are n sets of numbers each having only three positive integers with LCM equal to 1001 and HCF equal to 1. What is the value of n?UPSC Prelims 2025 (CSAT) · CSAT Q28
- The 5-digit number PQRST (all distinct digits) is such that T≠0. P is thrice T. S is greater than Q by 4, while Q is greater than R by 3. How many…UPSC Prelims 2025 (CSAT) · CSAT Q58
- Three numbers x, y, z are selected from the set of the first seven natural numbers such that x > 2y > 3z. How many such distinct triplets (x, y, z)…UPSC Prelims 2024 (CSAT) · CSAT Q49