Let and be positive integers with . Let lamps labelled be given, each of which can be either on or off. Initially all the lamps are off. We consider sequences of steps: at each step one of the lamps is switched (from on to off or from off to on).
Let be the number of such sequences consisting of steps and resulting in the state where lamps through are all on, and lamps through are all off.
Let be number of such sequences consisting of steps, resulting in the state where lamps through are all on, and lamps through are all off, but where none of the lamps through is ever switched on.
Find
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For N , we will have to make k steps switching in each one the state of one of the 2 n lamps. Thus, we will be able to make ( 2 n ) k steps. How many of those final states are those we want? It's easy to say 2 2 n , but only half of the states are possible, since after m steps, the sum of the states S S (taking 0 as a lamp switch off and 1 as a switched, or viceversa) will satisfy S S ≡ m ( m o d 2 ) . So, the possible final solutions for N are N = 2 2 2 n ( 2 n ) k = 2 2 n − 1 ( 2 n ) k .
Same for M. The only difference in n is that we only switch the first n lamps instead of the 2 n lamps. So, the possible final solutions for M will be M = 2 2 n n k = 2 n − 1 ( n ) k .
Then M N = 2 n − 1 n k 2 2 n − 1 ( 2 n ) k = ( n 2 n ) k ⋅ 2 2 n − 1 2 n − 1 = 2 k ⋅ 2 n − 1 − 2 n + 1 = 2 k − n
Taking k = n + a (yes, a = 1 0 ): 2 k − n = 2 n + a − n = 2 a .
As a = 1 0 , the solution will be 2 a = 2 1 0 = 1 0 2 4