Processing math: 100%

Tuesday, February 3, 2015

Solution to equal coins puzzle

This has solutions to the Equal coins puzzle posted earlier.

A brief description of the problem:

There are 2n+1 reals numbers, r1,r2,,r2n+1. Given any ri, you can split the remaining 2n into two groups of n each, such that the sum of elements of one group is the same as the sum of elements of the other group.

Show that ri=rj (i.e. all must be equal).

Solutions

All the solutions that I know use Linear Algebra (if you know/can think of one without using Linear Algebra, please share!).

Solution 1)

This is the solution I had come up with when I first saw this problem.

The property basically means that there is a (2n+1)×(2n+1) matrix A such that

Every row of A has exactly n ones and n minus ones.

The main diagonal of A is 0

Ax=0 has a non-trivial solution.

Since x=[1,1,,1] is an obvious solution, in order to show that all the coins/real numbers must be equal, it is enough if we show that the rank of A is 2n.

Consider the characteristic polynomial of A, PA(t)=det(AtI).

It is enough to show that coefficient of t in PA(t) is non-zero.

Consider the formula for the determinant of an N×N matrix M

detM=σsign(σ)Ni=1Miσ(i)

where σ runs over the permutations of {1,2,,N} and sign gives the sign (based on the parity of the permutation).

For the PA(t), the coefficient of t is given by those permutations such that there is exactly one i such that σ(i)=i.

Since each product Ajσ(j) is ±1, the coefficient of t is a sum of ones and minus ones.

It is thus enough to show that there is an odd number of such permutations.

This number is basically (2n+1)D2n, where D2n is the number of derangments of 1,2,2n!

This is easily shown to be odd (based on a recursive formulas) and is left as an exercise :-).

I was quite happy with this solution, when Professor David Zuckerman of UT Austin showed me this neat proof:

Solution 2)

Like 1), we start with matrix A, but consider it over F2, the field of 0,1. One can show that rank(A) over Rrank(A) over F2.

Now use the fact that rank(A)+rank(B)rank(A+B)

In F2, A is just the all ones matrix, except the diagonal, which is all zeros.

To that, we add the all ones matrix B, giving the identity. The all ones matrix B trivially has rank 1.

Thus we get rank(A)+12n+1.

Since rank(A)2n+1 (it has a non-trivial solution), we are done.

And the third solution, which is quite neat too and generalizes to kn+1 numbers.

Solution 3)

First assume that the ri were integers. We can also assume they are all non-negative, as adding a fixed constant does not change the property.

Now consider the ri which has the smallest maximum.

If S=r1+r2++r2n+1, then the property gives us that S=rimod2 for every i.

Thus all are even or all are odd. If all are even, we can divide by 2. If all are odd, we can subtract the smallest number.

Thus they must be equal. This easily extends to the case when the numbers are rational.

Now the Linear Algebra application: the reals are a vector space over the rationals! (See Hamel Basis). Writing the reals as a (finite) linear combination of the basis numbers, with coefficients in Q, gives us that the coefficients of each basis vector/number should satisfy similar properties, and thus must be equal, implying the ris are equal!


No comments:

Post a Comment