Problem 6
There are lamps in a circle, where and . At step , if is lit, switch , otherwise do nothing. Initially all lamps are on. Show that (a) there is a positive integer such that after steps all lamps are on again; (b) if , take ; (c) if , take .
Step 1 of 5: Encode the lamps
In plain words
Sequential updates make each lamp depend on the already updated predecessor.
Detailed analysis
Let be 1 when is lit and 0 otherwise. A switch is addition by 1 in the field with two elements. During one complete pass, the updated values satisfy and for from 1 through .