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

linear algebramodular arithmetic

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?

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.
Related Question