• edited by
1,601 views
0 0 votes

An intelligence agency forms a code of two distinct digits selected from $0, 1, 2, \dots 9$ such that the first digit of the code is nonzero. The code, handwritten on a slip, can however potentially create confusion, when read upside down – for example, the code $91$ may appear as $16.$ How many codes are there for which no such confusion can arise?

  1. $80$
  2. $78$
  3. $71$
  4. $69$

1 Answer

0 0 votes

Here is a step-by-step solution to the problem.

Step 1: Calculate the total number of possible codes.

The code is a two-digit number formed using distinct digits from \( \{0, 1, 2, \dots, 9\} \).
The first digit cannot be zero.

Choices for the first digit: There are 9 options (\(1, 2, \dots, 9\)).
Choices for the second digit: There are 9 options remaining (all 10 digits minus the one already used for the first position).

Total number of possible codes = \(9 \times 9 = 81\).

Step 2: Identify the digits that can create confusion.

Confusion arises when a digit, read upside down, looks like another digit. Based on the example (\(91\) appearing as \(16\)) and standard handwriting:
0 upside down is 0
1 upside down is 1
6 upside down is 9
8 upside down is 8
9 upside down is 6

The digits 2, 3, 4, 5, 7 do not form any digit when read upside down.
Let's call the set of "invertible" digits \(I = \{0, 1, 6, 8, 9\}\).
Let's call the set of "non-invertible" digits \(N = \{2, 3, 4, 5, 7\}\).

Step 3: Define and count the codes that cause confusion.

A code causes confusion if reading it upside down results in a different valid code.
Let the original code be \(d_1 d_2\). When read upside down, the new number is \(d_2' d_1'\), where \(d'\) is the inverted version of digit \(d\).

For confusion to arise, three conditions must be met:

  1. Both digits \(d_1\) and \(d_2\) must be from the invertible set \(I\), so that \(d_1'\) and \(d_2'\) are valid digits.
  2. The resulting number \(d_2' d_1'\) must be a valid two-digit code. This means its first digit, \(d_2'\), cannot be 0. Since \(0' = 0\), this implies \(d_2 \neq 0\).
  3. The new code must be different from the original code: \(d_2' d_1' \neq d_1 d_2\). If the code reads the same upside down (e.g., 69 -> 69), there is no confusion about what the code is.

Let's find the codes that satisfy these conditions for confusion:
From conditions 1 and 2, both \(d_1\) and \(d_2\) must be from the set \(I \setminus \{0\} = \{1, 6, 8, 9\}\).
The digits must be distinct, so we need to form 2-digit codes using distinct digits from \(\{1, 6, 8, 9\}\).
The number of such codes is the number of permutations of 2 digits from 4, which is \(P(4, 2) = 4 \times 3 = 12\).

These 12 codes are: 16, 18, 19, 61, 68, 69, 81, 86, 89, 91, 96, 98.

Now, let's apply condition 3: check which of these form a different code when inverted.
16 \(\rightarrow\) 91 (Different) -> Confusing
18 \(\rightarrow\) 81 (Different) -> Confusing
19 \(\rightarrow\) 61 (Different) -> Confusing
61 \(\rightarrow\) 19 (Different) -> Confusing
68 \(\rightarrow\) 89 (Different) -> Confusing
69 \(\rightarrow\) 69 (Same) -> Not confusing
81 \(\rightarrow\) 18 (Different) -> Confusing
86 \(\rightarrow\) 98 (Different) -> Confusing
89 \(\rightarrow\) 68 (Different) -> Confusing
91 \(\rightarrow\) 16 (Different) -> Confusing
96 \(\rightarrow\) 96 (Same) -> Not confusing
98 \(\rightarrow\) 86 (Different) -> Confusing

The codes that are their own inversions (69 and 96) do not cause confusion. The other 10 codes form 5 pairs where each code in a pair can be mistaken for the other.
The confusing codes are: 16, 18, 19, 61, 68, 81, 86, 89, 91, 98.
There are 10 codes that cause confusion.

Step 4: Calculate the number of codes with no confusion.

The number of codes for which no confusion can arise is the total number of codes minus the number of confusing codes.
Number of non-confusing codes = Total codes - Confusing codes
Number of non-confusing codes = \(81 - 10 = 71\).

This can also be calculated by directly counting the non-confusing codes:

  1. Codes with at least one non-invertible digit (from \(N = \{2,3,4,5,7\}\)):
Both digits from N: \(5 \times 4 = 20\)
First from N, second from I: \(5 \times 5 = 25\)
First from I (non-zero), second from N: \(4 \times 5 = 20\)
Total = \(20 + 25 + 20 = 65\) codes.
  1. Codes with both digits from I (\(I = \{0,1,6,8,9\}\)) that are not confusing:
Codes ending in 0: 10, 60, 80, 90. When inverted, they become 01, 09, 08, 06, which are not valid 2-digit codes. So, these 4 are not confusing.
Codes that read the same upside down: We found these to be 69 and 96. These 2 are not confusing.
* Total = \(4 + 2 = 6\) codes.

Total non-confusing codes = \(65 + 6 = 71\).

Both methods yield the same result.

The correct option is C.

Answer: C

ago
Position:
Show:
Answer:

Related questions

0 0 votes
1 1 answer
5.4k
5.4k views
go_editor asked May 5, 2016
5,442 views
There are $12$ towns grouped into four zones with three towns per zone. It is intended to connect the towns with telephone lines such that every two towns are connected w...
0 0 votes
1 answers 1 answer
2.0k
2.0k views
go_editor asked May 5, 2016
1,958 views
Answer the questions on the basis of the information given below.A string of three English letters is formed as per the following rulesThe first letter is any vowel.The s...
0 0 votes
1 answers 1 answer
2.4k
2.4k views
go_editor asked May 5, 2016
2,376 views
Answer the questions on the basis of the information given below.A string of three English letters is formed as per the following rulesThe first letter is any vowel.The s...
0 0 votes
1 1 answer
2.4k
2.4k views
go_editor asked Apr 25, 2016
2,375 views
Answer the following question based on the information given below.Sixteen teams have been invited to participate in the ABC Gold Cup cricket tournament. The tournament i...
1 1 vote
1 1 answer
2.2k
2.2k views
Misbah Ghaya asked Jun 23, 2024
2,211 views
Consider a cylinder of height $h$ cms and radius $r=\frac{2}{\pi}$ cms as shown in the figure (not drawn to scale). A string of a certain length, when wound on its cylind...

Add Synced Question

×