Vedadots
Q5455/80Q56
Q55·CSAT · Prelims 2022

Counting valid PIN combinations based on numerical constraints

ReasoningPermutations & CombinationsFactual singleMedium

Question

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?

Options

a

6

b

8

c

10

Answer
d

12

Explanation

Let the PIN be d_1 d_2 d_3. The rules are: d_1 > d_2 > d_3, with d_1 - d_2 \ge 2 and d_2 - d_3 \ge 2. Consequently, d_1 - d_3 must be at least 4. Valid digits are \{1, 2, 3, 4, 5, 6, 7\}. Systematically list candidates bounding by the smallest digit d_3:

If d_3 = 1: d_2 can be 3, 4, or 5.

\rightarrow d_2 = 3 \implies d_1 \in \{5, 6, 7\} (3 combos) \rightarrow d_2 = 4 \implies d_1 \in \{6, 7\} (2 combos) \rightarrow d_2 = 5 \implies d_1 = 7 (1 combo)

If d_3 = 2: d_2 can be 4 or 5.

\rightarrow d_2 = 4 \implies d_1 \in \{6, 7\} (2 combos) \rightarrow d_2 = 5 \implies d_1 = 7 (1 combo)

If d_3 = 3: d_2 can only be 5.

\rightarrow d_2 = 5 \implies d_1 = 7 (1 combo)

Summing all valid permutations: 3 + 2 + 1 + 2 + 1 + 1 = 10 attempts.

For cascading inequality limits (A-B \ge k), pin the smallest variable to its minimum possible value and build branches upwards to exhaustively map the permutation tree.

Answer: (c).

Question details

Year

2022

Paper

CSAT

Question

Q55

Section

Logical & Analytical Reasoning

Sub-topic

Permutations & Combinations

Type

Factual single

Difficulty

Medium

Source hint

Numeric lock 3-digit PIN, constraints

Same sub-topic — other years

Permutations & Combinations has appeared in multiple CSAT papers:

See all questions on Permutations & Combinations

Browse every tagged question across all years

Explore →