Question:medium

The number of \(3\)'s that are preceded by \(5\) but not followed by \(2\) in the following sequence of digits is \(3147531245321887538162537531675324\).

Show Hint

For sequence-counting questions, check both the previous and next digit carefully before counting.
  • \(7\)
  • \(5\)
  • \(4\)
  • \(6\)
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept:
This is a sequence scanning problem. We need to find all occurrences of the digit '3' that satisfy two conditions: the digit immediately before it must be '5', and the digit immediately after it must NOT be '2'.

Step 2: Key Formula or Approach:

We need to search the sequence for the pattern '53X', where X is any digit except '2'. We will scan the sequence and identify all such triplets.

Step 3: Detailed Explanation:

The sequence is: 3147531245321887538162537531675324. Let's scan the sequence and look for the digit '3'. For each '3' we find, we will check the preceding and succeeding digits. 1. ...47531... - Preceded by 5? Yes. - Followed by 2? No (it's 1). - This is a valid occurrence. (Count = 1) 2. ...24532... - Preceded by 5? Yes. - Followed by 2? Yes. - This is NOT a valid occurrence. 3. ...87538... - Preceded by 5? Yes. - Followed by 2? No (it's 8). - This is a valid occurrence. (Count = 2) 4. ...62537... - Preceded by 5? Yes. - Followed by 2? No (it's 7). - This is a valid occurrence. (Count = 3) 5. ...37531... - Preceded by 5? Yes. - Followed by 2? No (it's 1). - This is a valid occurrence. (Count = 4) 6. ...67532... - Preceded by 5? Yes. - Followed by 2? Yes. - This is NOT a valid occurrence. There are no other '3's that are preceded by a '5'. In total, we found 4 such occurrences.

Step 4: Final Answer:

There are 4 instances of the digit 3 that are preceded by 5 but not followed by 2. This corresponds to option (C).
Was this answer helpful?
0