Some odd cows

Logic Level 3

Your friend Leonard runs a farm and, aware of your abilities in problem solving, sent you a interesting message asking for help :

I wish to buy some cows for my farm, so I went to see my neighbour Albert. he is fairly old so he plans on selling his business and retiring. I asked him how many cows he could sell, and how much they weight. I think the old age turned him a bit mad, as this is what he answered :

  • "All I can tell you about their wheights is that they have the odd property that follows : I have 23 cows. If I take any one of my cows, set it apart from the others, it is possible for me to split the remaining cows into 2 groups of 11 cows each, so that the sum of the weights of the cows in each group is the same. However, this weight might not be the same depending on which cow I set apart at the beginning."
  • "I'm a bit lost here...", I said, "Could you tell me the weight of at least one cow to give me an hint ?"
  • " I guess I could... The youngest one, Marguerite, wheights 400kg, I believe. This should be enough data for you to find the weight of any 23 of my cows!"

Can you help Leonard and give him the weight of avery cow, or do you need more data from Albert ?

I need to ask Albert for more data I can help Leonard

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

Nathan Magnan
Feb 27, 2018

The answer is yes, you can help Leonard. But why, and how ?

Well, we might need to do a little bit of linear algebra here... And the first part, which would have been the hardest if the question was not in the "algebra" section of the website, is to represent the issus with matrix and vectors. Let us give a number from 1 to 23 to the cows, and let us mark as w 1 , . . . , w 23 w_{1},..., w_{23} their weights. Let us also mark as W the vector ( w 1 w 2 . . . w 23 ) \begin{pmatrix} w_{1} \\ w_{2} \\ ... \\ w_{23} \end{pmatrix} . Our goal is to find W.

The idea is to translate what Albert told us into the equation M × W = 0 M \times W = 0 where M is a matrix of size 23*23 that represents the data we have. The line i of matrix M will represent the data we gain by setting appart the cow i from the others. We know that we can create 2 groups A and B from the remaining cows of 11 cows each, so that k i n A w k j i n B w j = 0 \sum_{k \, in\, A} w_{k} - \sum_{j \, in\, B} w_{j} = 0 and A B = A \cap B = \varnothing . However we do not know A and B... We can represent this sum in M by giving to M i , i M_{i,i} the value 0 (the cow i does not appear in the sum), to 11 of the M i , k M_{i, k} the value +1 (group A from the sum), and to the 11 remaining M i , j M_{i,j} the value -1 (group B from the sum). We do not know which cows are in group A and which are in group B, so we will in our chain of reasonning consider all the matrix M that could have been created by this process, and try to find a general result on this set of matrices.

Now, we will introduce a new matrix, called N 23 N_{23} . If J 23 J_{23} is the matrix of size 23*23 full of 1s, and I 23 I_{23} is the identity matrix, we have N 23 = J I N_{23} = J - I . We find that N 23 N_{23} 's determinant is 22 (even), and that N 22 N_{22} 's determinant is -21 (odd).

Now please observe that the parity of a matrix M's determinant does not change if we modify M so that each of its coefficient keeps the same parity (this is due to Gauss's theorem and the definition of the determinant as a sum). Since all of the matrix M in our set of possible representation of the problem can be changed to N 23 N_{23} while keeping each coefficient's parity, we know that any matrix in our set has an even determinant. But we already knew that, because it is obvious that for any M in our set, the vector V = ( 1 1 . . . 1 ) V = \begin{pmatrix} 1 \\ 1 \\ ... \\ 1 \end{pmatrix} is a solution to the equation M × X = 0 M \times X = 0 . Therefore, M is not inversible, and its determinant is 0 (even).

What we learned from transforming all the Ms in Ns, is that the matrix of size 22*22 obtained by getting rid of the last line and last column of any M in our set has an odd determinant, and is therefore inversible. This means that the rank of any M in our set is at least 22 (a submatrix is inversible), but at most 23 (size of M), and is not 23 (M is not inversible). It has to be 22 !

This is great, because by the rank-nullity theorem, we know that any M in our set has a null space of dimension 1. We already noticed that V was always a non-null vector of this null space, we have therefore proven that the null space of any matrix in our set is the span of V. Hence, W is in the span of V !

What does it mean for our question ? Well, we know that any set of cows that verifies Albert's property, is a set in which all the cows have the very same weight. And we know that one of the cows weights 400 kgs. Hence, all cows weight 400 kgs ! I bet Leonard will be happy, and impressed by your reasonning !

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...