math puzzle

Jul 06, 2015 13:28

Right, we've wasted far too much time on this at work, so I'll inflict it on the rest of you ( Read more... )

math, nerdsnipe

Leave a comment

Comments 12

rifmeister July 7 2015, 06:59:38 UTC
Well that's a tricky one.

The simplest proof that I have that there's only one solution uses the setting instead of the math: It seems safe to assume that Phil can't hold a bag that has more than 10,000,000 balls in it, and checking all solutions up to that size is computationally trivial.

I started studying the variant of the problem where you pull out 2 blue balls instead of 4; that variant has multiple solutions, which intuitively implies that you're not going to show uniqueness in the 4-ball case from very simple properties of the obvious equation. [Computationally, the 3 ball case is also unique up to 10,000 balls.] If there's a simple answer, it's very clever, but I'm starting to suspect this requires deeper knowledge of Diophantine Equations than I've got?

Reply


rifmeister July 7 2015, 07:54:50 UTC
Actually, I think you can make a lot of progress by playing with evens and odds. For instance, defining t = r + b (t is the total number of balls in the sack), we are looking for solutions of:

(t * (t-1) * (t-2) * (t - 3)) / (b * (b-1) * (b-2) * (b-3)) = 2

Now, consider both the numerator and the denominator separately. They each contain one term which is a multiple of 4, one term which is a multiple of 2 but not a multiple of 4, and two odd terms. Defining n and d to be the multiple of 4 in the numerator and denominator respectively, match up the multiples of 4, pull out the multiples of 2 from the other even term and divide, and then you've got (n*(product of 3 odds)) / (d*(product of 3 odds)) = 2. This implies that for any solution, n/d = 2 and the product of the 3 odds in the numerator and denominator must be equal. You also know that the 3 odds in the numerator and the denominator are each a pair of numbers separate by 2, and a third number which is roughly half as large. I haven't quite turned this into a full proof though.

Reply

rifmeister July 7 2015, 11:37:43 UTC
OK, this is enough to finish the proof. Recalling that n and d are the multiple of 4 in the numerator and denominator respectively, we've shown that n = 2d ( ... )

Reply

treptoplax July 7 2015, 15:34:40 UTC
I may be missing it, but how do we get to n/d = 1/2 ?

I can see that

n = 2^x * (odd number)
d= 2^(x+1) * (odd number)

But do we know the odd factors are the same?

Reply

rifmeister July 7 2015, 16:07:48 UTC
It's a property of the solution. For most values of r and b [in fact for all values except r=1 and b=7], the odd terms in n/d won't be the same, so we don't get a valid solution. I'm using the original constraint on any solution (b/(b+r))*((b-1)/(b+r-1))*((b-2)/(b+r-2))*((b-3)/(b+r-3)) = 1/2 [and then taking the reciprocal of both sides and defining t = b+r.]

By the way, the way I defined, the 2^(x+1) is in n, not in d.

Does this make sense?

Reply


treptoplax July 8 2015, 03:43:28 UTC
So, FWIW, we got a bit of progress but not much. It looks straightforward, but... not so much ( ... )

Reply


rifmeister July 10 2015, 00:23:23 UTC
FWIW, I posted this on the Google internal math list which included a large number of hardcore mathematicians, some of whom have PhD's in number theory and related, and nobody had an answer. So I think there's unlikely to be any sort of cute simple easily understandable trick to the proof.

Reply

treptoplax July 10 2015, 15:42:39 UTC
Not sure if I should be disappointed or pleased. :)

It sounds straightforward enough, though, doesn't it?

Reply

rifmeister July 10 2015, 16:17:09 UTC
Well, both. Pleased with your own relative abilities, but disappointed because if there's no cute answer it's not *actually* a good puzzle. It's like telling someone the Collatz Conjecture but framing it as "Oh, I heard this cool brainteaser at work the other day." Good puzzles have good answers. Who gave this monster to you?

Reply


Leave a comment

Up