arrow
arrow
arrow
Count each 8 which is not immediately preceded by 6 but is immediately followed by either 3 or 4. How many such 8's are there? 6 8 3 7 6 8 4 9 4 8
Question

Count each 8 which is not immediately preceded by 6 but is immediately followed by either 3 or 4. How many such 8's are there?
6 8 3 7 6 8 4 9 4 8 4 3 6 8 3 8 4 5 9 3 7 8 9

A.

3

B.

1

C.

4

D.

2

Correct option is D

Given:

Sequence: 6 8 3 7 6 8 4 9 4 8 4 3 6 8 3 8 4 5 9 3 7 8 9
We need to count each 8 that satisfies the following conditions:
1. Is not immediately preceded by 6.
2. Is immediately followed by either 3 or 4.

Formula Used:

Check the sequence for each occurrence of 8:
- If Sequence[i] = 8, ensure:
- Sequence[i-1] ≠ 6 (not preceded by 6).
- Sequence[i+1] = 3 or Sequence[i+1] = 4 (followed by 3 or 4).

Solution:

Analyze each 8 in the sequence:

Position

Subsequence

Preceded by 6

Followed by 3 or 4

Count

2

6 8 3

Yes

Yes

No

6

6 8 4

Yes

Yes

No

10

9 8 4

No

Yes

Yes

14

6 8 3

Yes

Yes

No

16

8 4 5

No

Yes

Yes

22

7 8 9

No

No

No

Total count of valid 8's: 2

Free Tests

Free
Must Attempt

UP SI 2025 Full Mock Test : 01

languageIcon English
  • pdpQsnIcon160 Questions
  • pdpsheetsIcon400 Marks
  • timerIcon120 Mins
languageIcon English
Free
Must Attempt

UP Police Constable Full Mock Test 01

languageIcon English
  • pdpQsnIcon150 Questions
  • pdpsheetsIcon300 Marks
  • timerIcon120 Mins
languageIcon English
Free
Must Attempt

Government Policies and Scheme

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon5 Mins
languageIcon English
test-prime-package

Access ‘UPSSSC’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
353k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow