Question:hard

Consider a linear arrangement of seven bulbs, each of which can be in the ON or OFF state. The initial configuration of the bulbs is shown below. In every step, the states of the bulbs change based on the following rules:
  • Any OFF bulb with exactly one ON neighbor at the end of the previous step is turned ON.
  • Any ON bulb with both neighbors ON at the end of the previous step is turned OFF.
  • The state of any bulb not meeting the conditions above is left unchanged.
The states of the bulbs at the end of Step 1 and Step 2 are also shown below.
StageBulb 1Bulb 2Bulb 3Bulb 4Bulb 5Bulb 6Bulb 7
InitialOFFOFFOFFONOFFOFFOFF
Step 1OFFOFFONONONOFFOFF
Step 2OFFONONOFFONONOFF
The number of bulbs which are ON at the end of Step 8 is ______

Show Hint

Simulate the ON/OFF rule step by step; the pattern reaches a fixed alternating state well before Step 8, so counting the ON bulbs there gives the answer directly.
Updated On: Jul 20, 2026
  • 5
  • 4
  • 3
  • 0
Show Solution

The Correct Option is B

Solution and Explanation

Instead of drawing every bulb row, we can track just the set of positions that are ON at each stage and use the same two rules directly on that set.

Let $S_t$ be the set of ON bulb positions after stage $t$, numbering the bulbs $1$ to $7$.

  • $S_0=\{4\}$ (given initial state).
  • $S_1=\{3,4,5\}$ (given Step 1): bulbs 3 and 5 gain exactly one ON neighbor (bulb 4) and switch on; bulb 4 keeps both neighbors off so it is untouched.
  • $S_2=\{2,3,5,6\}$ (given Step 2): bulb 2 gains one ON neighbor (bulb 3) and turns on, bulb 6 gains one ON neighbor (bulb 5) and turns on, while bulb 4 has two ON neighbors (3 and 5) which is not "exactly one", so it turns off, and bulbs 3, 5 are untouched.

Continue the same set update for the next steps:

  • $S_3=\{1,2,3,5,6,7\}$: bulb 1 and bulb 7 each have exactly one ON neighbor (2 and 6 respectively) and switch on; bulb 4 again sees two ON neighbors and stays off; bulbs 2, 3, 5, 6 each have only one ON neighbor so they remain on.
  • $S_4=\{1,3,5,7\}$: bulb 2 now has both neighbors (1 and 3) ON, so it turns off; bulb 6 similarly turns off since both neighbors (5 and 7) are ON; bulbs 3 and 5 each have only one ON neighbor left, so they stay on; bulbs 1 and 7 stay on since, as end bulbs, they can never see two ON neighbors.

Check $S_4$ for stability: with ON positions $\{1,3,5,7\}$, every ON bulb (3 and 5) has both its neighbors OFF (an even position on each side), so neither condition to turn off is met and they stay on; bulbs 1 and 7 stay on as end bulbs. Every OFF bulb (2, 4, 6) has both its neighbors ON (odd positions on each side), which is two ON neighbors, not exactly one, so none of them switch on. Therefore $S_5=S_6=S_7=S_8=S_4=\{1,3,5,7\}$.

So the number of bulbs ON at the end of Step 8 equals $|S_4|=4$.

\[ \boxed{4} \]
Was this answer helpful?
0

Top Questions on Analytical Reasoning (pattern-based sequences)


Questions Asked in GATE EE exam