A word of length n that consists only of the digits 0 and 1, is called a bit-string of length n. (For example, 000 and 01101 are bit-strings of length 3 and 5.) Consider the sequence s(1),s(2),... of bit-strings of length n>1 which is obtained as follows :
(1) s(1) is the bit-string 00...01, consisting of n−1 zeros and a 1 ;
(2) s(k+1) is obtained as follows :
(a) Remove the digit on the left of s(k). This gives a bit-string t of length n−1.
(b) Examine whether the bit-string t1 (length n, adding a 1 after t) is already in {s(1),s(2),...,s(k)}. If this is the not case, then s(k+1)=t1. If this is the case then s(k+1)=t0.
For example, if n=3 we get :
s(1)=001→s(2)=011→s(3)=111→s(4)=110→s(5)=101→s(6)=010→s(7)=100→s(8)=000→s(9)=001→...
Suppose N=2n.
Prove that the bit-strings s(1),s(2),...,s(N) of length n are all different.