TITLE: There are three lights which can be in one of three states. Can we get the system of lights into a specific state?
QUESTION [5 upvotes]: 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?

REPLY [4 votes]: 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
$$