Skip to main contentSkip to solution

How many such 5's are there in the following number sequence, each of which is immediately preceded by 3 or 4 but not immediately followed by 8 or 9?

3 5 9 5 4 5 5 3 5 8 4 5 6 7 3 5 7 5 5 4 5 2 3 5 1 0

Solution

✅ Correct Option: 3

The sequence given is:

3,5,9,5,4,5,5,3,5,8,4,5,6,7,3,5,7,5,5,4,5,2,3,5,1,03, 5, 9, 5, 4, 5, 5, 3, 5, 8, 4, 5, 6, 7, 3, 5, 7, 5, 5, 4, 5, 2, 3, 5, 1, 0

The criteria for counting a 55:

  • Must be immediately preceded by 33 or 44
  • Must NOT be immediately followed by 88 or 99

Let's number each position and examine every 55 in the sequence:

Position 11 to 2626: 3,5,9,5,4,5,5,3,5,8,4,5,6,7,3,5,7,5,5,4,5,2,3,5,1,03, 5, 9, 5, 4, 5, 5, 3, 5, 8, 4, 5, 6, 7, 3, 5, 7, 5, 5, 4, 5, 2, 3, 5, 1, 0


Position 22: 3→5→93 \rightarrow \boxed{5} \rightarrow 9

Preceded by 33 ✓, but followed by 99 ✗

Does not count


Position 44: 9→5→49 \rightarrow \boxed{5} \rightarrow 4

Preceded by 99 ✗

Does not count


Position 66: 4→5→54 \rightarrow \boxed{5} \rightarrow 5

Preceded by 44 ✓, followed by 55 ✓

Counts ✓


Position 77: 5→5→35 \rightarrow \boxed{5} \rightarrow 3

Preceded by 55 ✗

Does not count


Position 99: 3→5→83 \rightarrow \boxed{5} \rightarrow 8

Preceded by 33 ✓, but followed by 88 ✗

Does not count


Position 1212: 4→5→64 \rightarrow \boxed{5} \rightarrow 6

Preceded by 44 ✓, followed by 66 ✓

Counts ✓


Position 1616: 3→5→73 \rightarrow \boxed{5} \rightarrow 7

Preceded by 33 ✓, followed by 77 ✓

Counts ✓


Position 1818: 7→5→57 \rightarrow \boxed{5} \rightarrow 5

Preceded by 77 ✗

Does not count


Position 1919: 5→5→45 \rightarrow \boxed{5} \rightarrow 4

Preceded by 55 ✗

Does not count


Position 2121: 4→5→24 \rightarrow \boxed{5} \rightarrow 2

Preceded by 44 ✓, followed by 22 ✓

Counts ✓


Position 2424: 3→5→13 \rightarrow \boxed{5} \rightarrow 1

Preceded by 33 ✓, followed by 11 ✓

Counts ✓


The 55's that satisfy both conditions are at positions 6,12,16,21,6, 12, 16, 21, and 2424.

Therefore, there are 55 such 55's in the sequence.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question