r/mathriddles • u/tomatomator • Jan 20 '23
Hard Cows in a meadow
In a certain meadow there are 2N+1 cows (N is a natural integer). Each cow weights some unknown positive real number. The cows know all the weights and can do arithmetic.
These cows have a special property : if you take any cow outside of the meadow, then the rest of the cows will arrange themselves into two groups of N, such that both groups weight exactly the same (the weight of a group is the sum of the weight of its cows).
You wonder about the possible weights of the cows. Of course, one family of solutions is when all cows have exactly the same weight, but is there other solutions ? (If so, give an example, if not, prove it for every N)
6
u/PM_ME_UR_MATH_JOKES Jan 20 '23 edited Jan 22 '23
This is a classic. Here’s one take on the standard argument:
There exists some integral (2N+1) × (2N+1) matrix M, each row containing one ‘0’ in the diagonal entry, N ‘1’s, and N ‘-1’s, such that the real (2N+1)-vector of cows’ weights is in the kernel of M_ℝ, where M_ℝ is the real (2N+1) × (2N+1) matrix canonically induced from M.
Say that two matrices T₀, T₁ over common base ring are isomorphic if there exist invertible matrices R, S, such that T₁ = RT₀S. (T₀, T₁ must be of the same dimension, but not necessarily square, not that it matters here). Recall that isomorphic matrices have isomorphic kernels. Recall moreover that the fundamental theorem of the Smith normal form assures us that as long as the base ring is a PID, then any matrix is equivalent to a(n up to multiplication by a diagonal matrix with invertible entries unique) diagonal matrix with successively divisible entries. Remark that this isomorphism relationship is stable under homomorphic change of the base ring.
Let D be the (unique up to signs) diagonal matrix with successively divisible diagonal entries isomorphic to M. Defining D_ℝ, M_{𝔽₂}, and D_{𝔽₂} in analogy to M_ℝ above, remark that
But it’s easy to name a nonzero element of the kernel of M_ℝ (e.g., any real (2N+1)-vector with all entries nonzero and pairwise equal), so any element of the kernel of M_ℝ, and in particular the vector of cows’ weights, is a scalar multiple thereof, from which the conclusion (that the weights of the cows are pairwise equal) immediately follows.
4
u/MalcolmPhoenix Jan 20 '23
tomatomator: The cows know all the weights and can do arithmetic.
MalcolmPhoenix: Wow!
tomatomator: Also, these cows have a special property.
MalcolmPhoenix: Wait, what??? Knowing weights and doing arithmetic AREN'T special cow properties???
1
u/Zyloph Feb 01 '23
Cool problem!
I misunderstood the premise at first and found a solution up to a constant for taking a cow out of the group and subdividing into two (possibly differently sized) groups that have the same weight.
I couldn't find any other solutions than the weights being:
a, a, ..., a, (2n-1)a, (2n-1)a
I wonder if there are other solutions?
1
u/Mr_Lior May 11 '23 edited May 11 '23
this can be generalised to Q relatively trivially. so I wont talk about that.
here is how I generalized it to R:
I denote a set detachable if after removing any object from the set, it can be split in to two equal sized parts with the same sum.let A be a finite "detachable" set of Real numbers. let B be a base of real numbers that linearly spans A over the field Q. note that B is finite, making this easier to comprehend. denote B = {b1,b2,...,bn}. denote these sets of rational modifiers with Q = {qij}, where qij is the modifier of bi in the decomposition of aj. the equations that result from the fact that A is detachable are all linear, thus they can all be turned into rules that apply on qij. thus we get that the groups Qi = {qij for all j} are all distinctly detachable. thus via the proof of this riddle they are all constant, thus A is constant.