There are three lights which can be in one of three states. Can we get the system of lights into a specific state?

1.1k Views Asked by At

If there is someone who can come up with a better title for this please edit the title.

There are three lights in a line. Each light can be in one of three states: off, light red, and dark red. There is a cycle of states: OFF, then LIGHT RED, then DARK RED, then back to OFF.

There are three switches which control the lights like so:

Switch A - advances the cycle for the first two lights Switch B - advances the cycle for the all three lights Switch C - advances the cycle for the last two lights.

If we start with all three lights in the off state can the switches be pushed in some order so that the three lights in the line are in: OFF-LIGHT RED-DARK RED?

I'm trying to model this with linear algebra. Where A,B,C are the lights in a row and we push A x times, B y times, and C z times. Of course the numbers are mod 3 because after 3 pushes we wrap back to the off state.

Any suggestions?

3

There are 3 best solutions below

0
On BEST ANSWER

Note that we can switch the first, second and third light independently, so any state can be reached:

  1. Switching $A$ twice and then $B$ is the same as switching the last light.
  2. Switching $C$ twice and then $B$ is the same as switching the first light.
  3. Switching $A$ once, switching $C$ once and switching $B$ twice is the same as switching the middle light.
10
On

We can represent the states of the lights with $0=Off, 1=Light Red, 2=Dark Red$. Then we want $$x+y\equiv 0\\ x+y+z\equiv 1\\y+z\equiv 2$$ where all the equivalences are $\mod 3$ The first two tell us $z=1$. The last two tell us $x=2$. Then from the first $y=1$. So we use A twice and the others once.

0
On

You can consider the actions of the switches as set of vectors in a three dimensional vector space over the finite field {0,1,2}, with basis (1,0,0), (0,1,0), (0,0,1).

You have switches: $$ \begin{align} a&=(1,1,0) \\ b&=(1,1,1) \\c&=(0,1,1) \end{align} $$

Because ${a,b,c}$ are linearly independent, they generate a three-dimensional vector space, which must contain every possible state, and indeed you have:

$$\begin{align} (1,0,0) &= b - c &= b + 2c \\ (0,1,0) &= a - b + c &= a + 2b + c \\ (0,0,1) &= -a + b &= 2a + b \end{align} $$ so $$ (0,1,2) = a + 2b + c + 2(2a + b) = 2a + b + c $$