• edited ago by
1,158 views
0 0 votes

A high security research lab requires the researchers to set a pass key sequence based on the scan of the five fingers of their left hands. When an employee first joins the lab, her fingers are scanned in an order of her choice, and then when she wants to re-enter the facility, she has to scan the five fingers in the same sequence.

The lab authorities are considering some relaxations of the scan order requirements, since it is observed that some employees often get locked-out because they forget the sequence.

The lab has now decided to require six scans in the pass key sequence, where exactly one finger is scanned twice, and the other fingers are scanned exactly once, which can be done in any order. For example, a possible sequence is $\text{TIMTRL}$.

Suppose the lab allows a variation of the original sequence (of six inputs) where at most two scans (out of six) are out of place, as long as the finger originally scanned twice is scanned twice and other fingers are scanned once.

How many different sequences of scans are allowed for any given person's original scan?

1 Answer

0 0 votes

Let the original pass key sequence be represented by $S = (s_1, s_2, s_3, s_4, s_5, s_6)$. This sequence consists of 6 scans. One finger is scanned twice, and the other four fingers are scanned once. For example, the multiset of scans could be $\{T, T, I, M, R, L\}$, where T is the thumb, I is the index finger, etc.

The problem states that a variation of the original sequence is allowed if "at most two scans (out of six) are out of place". This means we are looking for sequences that are permutations of the original multiset of scans, where the number of positions with a different scan compared to the original sequence is 0, 1, or 2.

Let's analyze these cases:

Case 1: Exactly 0 scans are out of place.
This means the new sequence is identical to the original sequence. There is only 1 such sequence.

Case 2: Exactly 1 scan is out of place.
This is impossible. If a scan at one position is changed, it must be swapped with a scan from another position (since the multiset of scans must remain the same). This would mean the scan at the second position is also out of place. Therefore, you cannot have exactly one scan out of place. There are 0 such sequences.

Case 3: Exactly 2 scans are out of place.
A permutation with exactly two elements out of their original positions is created by swapping two elements. Let's say we swap the scans at positions $i$ and $j$ in the original sequence $S$.
The resulting sequence, $S'$, will be different from $S$ and have exactly two scans out of place, provided that the original scans at these two positions were different ($s_i \neq s_j$).
If we swap two positions that have the same scan ($s_i = s_j$), the sequence remains unchanged.

So, we need to count the number of pairs of positions in the 6-scan sequence that hold different finger scans.
The total number of ways to choose two positions to swap from six positions is given by $\binom{6}{2}$:
$\binom{6}{2} = \frac{6 \times 5}{2} = 15$.

Out of these 15 possible swaps, we must subtract the cases where we swap two identical scans, as this does not produce a new sequence.
The original sequence has exactly one finger scanned twice. This means there is exactly one pair of positions that hold identical scans.
Therefore, the number of swaps that produce a new sequence (with exactly 2 scans out of place) is:
(Total pairs of positions) - (Pairs of positions with identical scans) = $15 - 1 = 14$.
This gives 14 distinct sequences.

Total Allowed Sequences
The total number of different allowed sequences is the sum of the sequences from all possible cases:
Total = (Case 1) + (Case 2) + (Case 3)
Total = $1 + 0 + 14 = 15$.

Thus, there are 15 different sequences of scans allowed for any given person's original scan.

ago
Position:
Show:
Answer:

Related questions

0 0 votes
1 1 answer
991
991 views
go_editor asked Mar 16, 2020
991 views
An old woman had the following assets:Rs. $70$ lakh in bank deposits$1$ house worth Rs. $50$ lakh$3$ flats, each worth Rs. $30$ lakhCertain number of gold coins, each wor...
0 0 votes
1 1 answer
1.3k
1.3k views
go_editor asked Mar 16, 2020
1,287 views
An old woman had the following assets:Rs. $70$ lakh in bank deposits$1$ house worth Rs. $50$ lakh$3$ flats, each worth Rs. $30$ lakhCertain number of gold coins, each wor...
0 0 votes
1 1 answer
1.4k
1.4k views
go_editor asked Mar 16, 2020
1,367 views
A tea taster was assigned to rate teas from six different locations - Munnar, Wayanad, Ooty, Darjeeling. Assam and Himachal. These teas were placed in six cups, numbered ...
0 0 votes
1 1 answer
1.0k
1.0k views
go_editor asked Mar 16, 2020
1,011 views
A tea taster was assigned to rate teas from six different locations - Munnar, Wayanad, Ooty, Darjeeling. Assam and Himachal. These teas were placed in six cups, numbered ...
0 0 votes
1 1 answer
982
982 views
go_editor asked Mar 16, 2020
982 views
A high security research lab requires the researchers to set a pass key sequence based on the scan of the five fingers of their left hands. When an employee first joins t...

Add Synced Question

×