Your friend gives you a code that reads: ( 1 1 6 , 8 5 , 6 4 , 4 3 , 2 7 , 1 8 , 7 6 , 5 7 , 8 3 , 6 0 , 7 1 , 5 2 , 5 7 , 3 8 , 1 3 1 , 9 3 , 5 8 , 3 9 , 3 2 , 2 3 ) He tells you that the original message is a math question written with words that he encoded using a 2 × 2 encoder matrix (see method outlined below). He won't tell you the numbers of the encoder matrix, but he does tell you that the first word of the original message is "WHAT".
Crack the code and give the numerical answer to the coded math question.
To encode a message using a square encoder matrix, first convert each letter to its corresponding number, then partition those numbers into groups that are the same length as the dimensions of the encoder matrix, and then multiply each partition by the encoder matrix. So to encode the message "BRILLIANT" with the square encoder matrix ( 1 4 2 7 ) , first convert each of letters to its corresponding number (using A = 1 , B = 2 , C = 3 , and so on), so "BRILLIANT" converts to ( 2 , 1 8 , 9 , 1 2 , 1 2 , 9 , 1 , 1 4 , 2 0 ) , because B = 2 , R = 1 8 , I = 9 , and so on. Then since the encoder matrix is a 2 × 2 matrix, partition these numbers into groups of 2 (if the length of message is not the correct multiple, add 0 s to the message until it is) and multiply each partition by the encoder matrix. Therefore, since
( 2 1 8 ) ⋅ ( 1 4 2 7 ) = ( 7 4 1 3 0 )
( 9 1 2 ) ⋅ ( 1 4 2 7 ) = ( 5 7 1 0 2 )
( 1 2 9 ) ⋅ ( 1 4 2 7 ) = ( 4 8 8 7 )
( 1 1 4 ) ⋅ ( 1 4 2 7 ) = ( 5 7 1 0 0 )
( 2 0 0 ) ⋅ ( 1 4 2 7 ) = ( 2 0 4 0 )
the message "BRILLIANT" encodes to ( 7 4 , 1 3 0 , 5 7 , 1 0 2 , 4 8 , 8 7 , 5 7 , 1 0 0 , 2 0 , 4 0 ) .
To decode a message , partition the coded message into groups that are the same length as the dimensions of the encoder matrix, multiply each group by the inverse of the encoder matrix, and convert each number to its corresponding letter. So to decode ( 7 4 , 1 3 0 , 5 7 , 1 0 2 , 4 8 , 8 7 , 5 7 , 1 0 0 , 2 0 , 4 0 ) with the square encoder matrix ( 1 4 2 7 ) , multiply each partitioned group of 2 by the inverse of the encoder matrix ( 1 4 2 7 ) , which is ( 1 ⋅ 7 − 2 ⋅ 4 7 1 ⋅ 7 − 2 ⋅ 4 − 4 1 ⋅ 7 − 2 ⋅ 4 − 2 1 ⋅ 7 − 2 ⋅ 4 1 ) = ( − 7 4 2 − 1 ) . Since
( 7 4 1 3 0 ) ⋅ ( − 7 4 2 − 1 ) = ( 2 1 8 )
( 5 7 1 0 2 ) ⋅ ( − 7 4 2 − 1 ) = ( 9 1 2 )
( 4 8 8 7 ) ⋅ ( − 7 4 2 − 1 ) = ( 1 2 9 )
( 5 7 1 0 0 ) ⋅ ( − 7 4 2 − 1 ) = ( 1 1 4 )
( 2 0 4 0 ) ⋅ ( − 7 4 2 − 1 ) = ( 2 0 0 )
the coded message ( 7 4 , 1 3 0 , 5 7 , 1 0 2 , 4 8 , 8 7 , 5 7 , 1 0 0 , 2 0 , 4 0 ) decodes to ( 2 , 1 8 , 9 , 1 2 , 1 2 , 9 , 1 , 1 4 , 2 0 , 0 ) , and using A = 1 , B = 2 , C = 3 , and so on, ( 2 , 1 8 , 9 , 1 2 , 1 2 , 9 , 1 , 1 4 , 2 0 , 0 ) decodes to "BRILLIANT".
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.
Problem Loading...
Note Loading...
Set Loading...
Let the missing 2 × 2 decoder matrix be ( a c b d ) . Since the first two letters of the decoded message are W and H , and W = 2 3 and H = 8 , and the first two numbers of the coded message are 1 1 6 and 8 5 , we have ( 1 1 6 8 5 ) ⋅ ( a c b d ) = ( 2 3 8 ) which means 1 1 6 a + 8 5 c = 2 3 and 1 1 6 b + 8 5 d = 8 .
Since the second two letters of the decoded message are A and T , and A = 1 and T = 2 0 , and the second two numbers of the coded message are 6 4 and 4 3 , we have ( 6 4 4 3 ) ⋅ ( a c b d ) = ( 1 2 0 ) which means 6 4 a + 4 3 c = 1 and 6 4 b + 4 3 d = 2 0 .
Solving the system of equations 1 1 6 a + 8 5 c = 2 3 and 6 4 a + 4 3 c = 1 gives a = − 2 and c = 3 , and solving the system of equations 1 1 6 b + 8 5 d = 8 and 6 4 b + 4 3 d = 2 0 gives b = 3 and d = − 4 . Therefore, the decoder matrix is ( a c b d ) = ( − 2 3 3 − 4 ) .
Multiplying the rest of the message by the decoder matrix gives:
( 2 7 1 8 ) ⋅ ( − 2 3 3 − 4 ) = ( 0 9 )
( 7 6 5 7 ) ⋅ ( − 2 3 3 − 4 ) = ( 1 9 0 )
( 8 3 6 0 ) ⋅ ( − 2 3 3 − 4 ) = ( 1 4 9 )
( 7 1 5 2 ) ⋅ ( − 2 3 3 − 4 ) = ( 1 4 5 )
( 5 7 3 8 ) ⋅ ( − 2 3 3 − 4 ) = ( 0 1 9 )
( 1 3 1 9 3 ) ⋅ ( − 2 3 3 − 4 ) = ( 1 7 2 1 )
( 5 8 3 9 ) ⋅ ( − 2 3 3 − 4 ) = ( 1 1 8 )
( 3 2 2 3 ) ⋅ ( − 2 3 3 − 4 ) = ( 5 4 )
for ( 0 , 9 , 1 9 , 0 , 1 4 , 9 , 1 4 , 5 , 0 , 1 9 , 1 7 , 2 1 , 1 , 1 8 , 5 , 4 ) .
Using A = 1 , B = 2 , C = 3 , and so on, and using the given first word of "WHAT", this message decodes to "WHAT IS NINE SQUARED" and the answer to that is 8 1 .