MathLabs

Problem 6

There are nn lamps L0,…,Ln−1L_0,\ldots,L_{n-1} in a circle, where n>1n>1 and Ln+k=LkL_{n+k}=L_k. At step sis_i, if Li−1L_{i-1} is lit, switch LiL_i, otherwise do nothing. Initially all lamps are on. Show that (a) there is a positive integer M(n)M(n) such that after M(n)M(n) steps all lamps are on again; (b) if n=2kn=2^k, take M(n)=n2−1M(n)=n^2-1; (c) if n=2k+1n=2^k+1, take M(n)=n2−n+1M(n)=n^2-n+1.
Step 2 of 5: Use a linear round map
In plain words

The infinite-looking process is a finite linear dynamical system.

T(x0,…,xn−1)=(y0,…,yn−1)T(x_0,\ldots,x_{n-1})=(y_0,\ldots,y_{n-1})
Detailed analysis

The recurrence defines a linear map T on the finite vector space of 2^n binary states. The original process is the periodic sequence of coordinate updates whose n-step map is T.