Peculiar Order Relation on a Finite Set in the Year 2021

Algebra Level 5

Let us introduce the set M = { 1 , 1 } , M=\{1, -1\}, and for any positive integer number n , n, we can define the Cartesian Product M n = M × M × . . . × M , M^n=M\times M\times...\times M, where M M is repeated n times, and, of course, M 1 = M . M^1=M. Assume that M M is provided with the regular order, and we can now define an order denoted by " < < " on the set M n M^n where n 2 n\geq 2 using a recursive definition. Let us assume that the order is already defined on M k , M^k, where k 1 , k\geq 1, and then given two elements of M k + 1 M^{k+1} represented by l = ( a 1 , a 2 , a 3 , . . . , a k + 1 ) l=(a_1, a_2, a_3,..., a_{k+1}) and m = ( b 1 , b 2 , b 3 , . . . , b k + 1 ) , m=(b_1, b_2, b_3,..., b_{k+1}), we say that l < m l<m when one of the following three conditions is true:

1) a 1 = 1 a_1= -1 and b 1 = 1. b_1=1.

2) a 1 = b 1 = 1 a_1=b_1=1 and ( a 2 , a 3 , . . . , a k + 1 ) < ( b 2 , b 3 , . . . , b k + 1 ) (a_2, a_3,..., a_{k+1}) < (b_2, b_3,..., b_{k+1}) in M k . M^k.

3) a 1 = b 1 = 1 a_1=b_1=-1 and ( b 2 , b 3 , . . . , b k + 1 ) < ( a 2 , a 3 , . . . , a k + 1 ) (b_2, b_3,..., b_{k+1})<(a_2, a_3,..., a_{k+1}) in M k . M^k.

If you can express the elements of M 11 M^{11} in an increasing order l 0 < l 1 < l 2 < . . . < l 2 11 1 , l_0<l_1< l_2< ...<l_{2^{11}-1}, then enter the number of 1's in l 2021 , l_{2021}, as your answer. Otherwise, enter 555.


The answer is 7.

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.

1 solution

Arturo Presa
Jan 2, 2021

Given an arbitrary positive integer number n n , we can define the following function f n : M n { 0 , 1 , 2 , . . . , 2 n 1 } f_n: M^n\rightarrow \{0, 1, 2, ..., 2^n-1\} by the following rule f n ( a 1 , a 2 , . . . , a n ) = ( α 1 α 2 . . . α n ) 2 , f_n(a_1, a_2, ..., a_n)= (\overline{\alpha_1\alpha_2 ... \alpha_n})_2, where the expression in the right side of the following equation is a binary number defined on the following way α 1 = { 1 , if a 1 = 1 0 , if a 1 = 1. \alpha_1=\begin{cases} 1, & \text{ if}\; a_1=1 \\ 0, & \text{ if}\; a_1=-1. \end{cases} For any integer k k greater than 1, α k = { 1 , if a 1 a 2 . . . a k = 1 0 , if a 1 a 2 . . . a k = 1. \alpha_k=\begin{cases} 1, & \text{ if}\; a_1a_2...a_k=1 \\ 0, & \text{ if}\; a_1a_2...a_k=-1. \end{cases} We can see that f n f_n has an inverse function that can be defined in the following way f n 1 ( α 1 α 2 . . . α n ) 2 = ( a 1 , a 2 a 1 , a 3 a 2 , . . . , a n a n 1 ) , f_n^{-1} (\overline{\alpha_1\alpha_2... \alpha_n})_2=(a_1, \frac{a_2}{a_1}, \frac{a_3}{a_2},...,\frac{a_n}{a_{n-1}}), where
a k = { 1 , if α k = 1 1 , if α k = 0. a_k=\begin{cases} 1, & \text{ if}\; \alpha_k=1 \\ -1, & \text{ if}\; \alpha_k=0. \end{cases} Now, we are going to use Mathematical Induction to prove the following equivalence.

( a 1 , a 2 , . . . , a n ) < ( b 1 , b 2 , . . . , b n ) f n ( a 1 , a 2 , . . . , a n ) < f n ( b 1 , b 2 , . . . , b n ) ( ) (a_1, a_2, ..., a_n)<(b_1, b_2, ..., b_n) \iff f_n(a_1, a_2, ..., a_n)<f_n(b_1, b_2, ..., b_n)\;\;\;\;\;\;\;(*) Notice that the two symbols "<" represent different orders. The first represents the order on M n M^n and the second represents the regular order on the integers. Of course, this property is obviously true when n = 1. n=1.

Assume that the equivalence is true if n = k , n=k, and we must prove that it is true when n = k + 1. n=k+1. To prove (*) for n = k + 1 n=k+1 let us consider two ( k + 1 ) t h (k+1)^{th} -tuples ( a 1 , a 2 , . . . , a k + 1 ) (a_1, a_2, ..., a_{k+1}) and ( b 1 , b 2 , . . . , b k + 1 ) (b_1, b_2, ..., b_{k+1}) in M k + 1 M^{k+1} . Let us consider also that f k + 1 ( a 1 , a 2 , . . . , a k + 1 ) = ( α 1 α 2 . . . α n ) 2 f_{k+1}(a_1, a_2, ..., a_{k+1})=(\overline{\alpha_1 \alpha_2 ... \alpha_n})_2 and f k + 1 ( b 1 , b 2 , . . . , b k + 1 ) = ( β 1 β 2 . . . β n ) 2 , f_{k+1}(b_1, b_2, ..., b_{k+1})=(\overline{\beta_1 \beta_2 ... \beta_n})_2, where the α k s \alpha_k's and the β k s \beta_k's are defined as we did it above. We are going to divide the proof in the following cases.

Case 1. a 1 = 1 a_1=-1 and b 1 = 1. b_1=1.

The equivalence (*) is true due to the fact that ( a 1 = 1 and b 1 = 1 ) ( α 1 = 0 and β 1 = 1 ) (a_1=-1\; \text{ and} \;b_1=1) \iff (\alpha_1=0 \;\text{and}\; \beta_1 =1)

Case 2. a 1 = b 1 = 1. a_1=b_1=1. In this case, it is easy to see that if f k + 1 ( 1 , a 2 , . . . , a k + 1 ) = ( 1 α 2 . . . α n ) 2 f_{k+1}(1, a_2, ..., a_{k+1})=(\overline{1\alpha_2 ... \alpha_n})_2 and f k + 1 ( 1 , b 2 , . . . , b k + 1 ) = ( 1 β 2 . . . β n ) 2 , f_{k+1}(1, b_2, ..., b_{k+1})=(\overline{1 \beta_2 ... \beta_n})_2, then f k ( a 2 , . . . , a k ) = ( α 2 . . . α n ) 2 f_k( a_2, ..., a_{k})=(\overline{ \alpha_2 ... \alpha_n})_2 and f k ( b 2 , . . . , b k + 1 ) = ( β 2 . . . β n ) 2 , f_k( b_2, ..., b_{k+1})=(\overline{\beta_2 ... \beta_n})_2, and vice-versa.

Then we can prove the equivalence (*) for n = k + 1 n=k+1 in the following way. The condition ( 1 , a 2 , . . . , a k + 1 ) < ( 1 , b 2 , . . . , b k + 1 ) (1, a_2, ..., a_{k+1})<(1, b_2, ..., b_{k+1}) is equivalent to ( a 2 , . . . , a k + 1 ) < ( b 2 , . . . , b k + 1 ) ( a_2, ..., a_{k+1})<(b_2, ..., b_{k+1}) by the definition of the order on M k + 1 . M^{k+1}. Using the hypothesis of induction the last inequality is equivalent to ( α 2 . . . α k + 1 ) 2 < ( β 2 . . . β k + 1 ) 2 , (\overline{ \alpha_2 ... \alpha_{k+1}})_2<(\overline{\beta_2 ... \beta_{k+1}})_2, and this one is equivalent to f k + 1 ( 1 , a 2 , . . . , a k + 1 ) < f k + 1 ( 1 , b 2 , . . . , b k + 1 ) f_{k+1}(1, a_2, ..., a_{k+1})<f_{k+1}(1, b_2, ..., b_{k+1})

Case 3. a 1 = b 1 = 1. a_1=b_1=-1. In this case, it also easy to see that f k + 1 ( 1 , a 2 , . . . , a k + 1 ) = ( α 2 . . . α k + 1 ) 2 f_{k+1}(-1, a_2, ..., a_{k+1})=(\overline{\alpha_2 ... \alpha_{k+1}})_2 and f k + 1 ( 1 , b 2 , . . . , b k + 1 ) = ( β 2 . . . β k + 1 ) 2 f_{k+1}( -1, b_2, ..., b_{k+1})=(\overline{\beta_2 ... \beta_{k+1}})_2 In turn, these two equations are equivalent to f k ( a 2 , . . . , a k + 1 ) = ( t 2 . . . t k + 1 ) 2 f_{k}( a_2, ..., a_{k+1})=(\overline{t_2 ... t_{k+1}})_2 and f k ( b 2 , . . . , b k + 1 ) = ( t 2 . . . t k + 1 ) 2 , f_{k}( b_2 ,..., b_{k+1})=(\overline{t_2 ... t_{k+1}})_2, where t k = { 0 , if α k = 1 1 , if α k = 0. t_k=\begin{cases} 0, & \text{ if}\; \alpha_k=1 \\ 1, & \text{ if}\; \alpha_k=0. \end{cases} and s k = { 0 , if β k = 1 1 , if β k = 0. s_k=\begin{cases} 0, & \text{ if}\; \beta_k=1 \\ 1, & \text{ if}\; \beta_k=0. \end{cases} Now the equivalence (*) can be proved in a simple way for n = k + 1. n=k+1. The condition ( 1 , a 2 , . . . , a k + 1 ) < ( 1 , b 2 , . . . , b k + 1 ) (-1, a_2, ..., a_{k+1})<(-1, b_2, ..., b_{k+1}) is equivalent to ( b 2 , . . . , b k + 1 ) < ( a 2 , . . . , a k + 1 ) ( b_2, ..., b_{k+1})<(a_2, ..., a_{k+1}) by the definition of the order on M k + 1 . M^{k+1}. The last inequality is equivalent to f k ( b 2 , . . . , b k + 1 ) < f k ( a 2 , . . . , a k + 1 ) , f_{k}( b_2, ..., b_{k+1})<f_{k}( a_2, ..., a_{k+1}), by the hypothesis of induction, and using our comment at the beginning of this case, this last inequality is equivalent to f k + 1 ( 1 , a 2 , a 3 , . . . , a k + 1 ) < f k + 1 ( 1 , b 2 , b 3 , . . . , b k + 1 ) . f_{k+1}(-1, a_2, a_3, ..., a_{k+1})<f_{k+1}(-1, b_2, b_3, ..., b_{k+1}).

Then the proof of (*) is complete.

From the property (*), we can obtain that f n f_n is not only bijective, but it also keeps the order. Therefore, in the case that n = 11 n=11 we have that l k = g 11 1 ( k ) , l_k=g_{11}^{-1}(k), where k k is an integer satisfying 0 k 2 11 1 = 2047. 0\leq k\leq 2^{11}-1=2047. Now using that g 11 1 ( ( α 1 . . . α 11 ) 2 ) = ( a 1 , a 2 a 1 , . . . , a 11 a 10 ) g_{11}^{-1}((\overline{\alpha_1 ...\alpha_{11}})_2)=(a_1,\frac{a_2}{a_1} , ..., \frac{a_{11}}{a_{10}}) as it was defined above, and that the binary representation of 2021 is ( 11111100101 ) 2 , (\overline{11111100101})_2, we obtain that g 11 1 ( 2021 ) = ( 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) . g_{11}^{-1}(2021)=(1,1,1,1,1,1,-1,1,-1,-1, -1). So the answer is 7 . \boxed {7}.

The list in the problem is l 0 < l 1 < l 3 < < l 2 11 l_0<l_1< l_3< \dots <l_{2^{11}} . Did you mean to skip l 2 l_2 ?

Jon Haussmann - 5 months, 1 week ago

Log in to reply

No, Mr. Haussman. It was a mistake. I corrected it. Sorry about that and thank you for letting me know.

Arturo Presa - 5 months, 1 week ago

Log in to reply

There is still a problem. The set M 11 M^{11} contains 2 11 2^{11} elements, but the list l 0 < l 1 < l 2 < < l 2 11 l_0 < l_1 < l_2 < \dots < l_{2^{11}} contains 2 11 + 1 2^{11} + 1 elements.

Jon Haussmann - 5 months, 1 week ago

Log in to reply

@Jon Haussmann Yes, you are right. I corrected that also.

Arturo Presa - 5 months, 1 week ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...