Let n be an integer >1. In a circular arrangement of n lamps L0,⋯,Ln−1, each one of which can be either ON or OFF, we start with the situation that all lamps are ON, and then carry out a sequence of steps, Step0,Step1,⋯. If Lj−1 (j is taken mod n) is ON, then Stepj changes the status of Lj (it goes from ON to OFF or from OFF to ON) but does not change the status of any of the other lamps. If Lj−1 is OFF, then Stepj does not change anything at all. Show that:(a) There is a positive integer M(n) such that after M(n) steps all lamps are ON again.(b) If n has the form 2k, then all lamps are ON after n2−1 steps.(c) If n has the form 2k+1, then all lamps are ON after n2−n+1 steps. combinatoricsinvariantSystemalgorithmIMO ShortlistIMO Longlist