...a companion blog to "Math-Frolic," specifically for interviews, book reviews, weekly-linkfests, and longer posts or commentary than usually found at the Math-Frolic site.

*********************************************************************************************
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of painting or music, yet sublimely pure, and capable of a stern perfection such as only the greatest art can show." ---Bertrand Russell (1907) Rob Gluck

"I have come to believe, though very reluctantly, that it [mathematics] consists of tautologies. I fear that, to a mind of sufficient intellectual power, the whole of mathematics would appear trivial, as trivial as the statement that a four-legged animal is an animal." ---Bertrand Russell (1957)

******************************************************************** Rob Gluck

Showing posts with label puzzles. Show all posts
Showing posts with label puzzles. Show all posts

Wednesday, June 1, 2016

Re-running Raymond


It was Raymond Smullyan's birthday last week, so this is as good a time as any to re-run my favorite, mind-blowing conundrum of his, which I re-post almost every year at one of my two blogs (so if you remember it all-too-well you have permission to skip all that follows). Smullyan set forth the problem in "Annals of the New York Academy of Sciences," 1979, Vol. 321, but I've adapted my version from Martin Gardner's presentation in his Colossal Book of Mathematics. Onward....



You walk into a room that has two enormous bins in it. An evil genie is in charge of one bin which contains an infinite supply of ping pong balls, each of which bears a positive integer label on it, which is its 'rank' (from "1" up to any imaginable number, short of infinity). And, moreover, for EVERY integer there are an INFINITE number of such balls available; i.e. an infinite no. of "#1" balls, an infinite no. of "#726" balls, an infinite no. of "#3,376,422" balls, etc. etc. etc. Now, YOU are in charge of a second bin that contains some FINITE number of these very same-type balls. When you walk into the room it has some set number and variety of balls in it; could be 3 balls total or 500 trillion -- believe it or not, it makes NO difference for the final solution of this puzzle.

Now, a game will be played as follows:
YOU have as a goal to completely empty out your box, given the following rules:

The game proceeds in rounds, in which, first you and then the evil genie, take turns. First, you get to remove ONE ball from the finite box and discard it... BUT once you remove a ball, it is the evil genie's turn, and he gets to replace the ball you discarded with ANY number of balls he wishes OF A LESSER RANK from his infinite bin... i.e., you might discard a "#7" ball, and he could put back in to your bin 37 trillion "#4" balls (or he could put in three "#5" balls if he so chose; he just can't put in anything #7 or above). The sole exception is when you remove a #1 ball, because there are no 'ranks' below one, so there are NO replacements for a #1 ball, and in essence, the genie loses a turn. But in all other instances he can place as many balls as he wishes back into your bin.

Now the question: Is there any strategy you can use to insure you will eventually be able to empty out your box?... or is it rather the case, that the evil genie can, if he so wishes, PREVENT you from EVER emptying out your bin?
...It seems obvious that the latter is the case, as, over time, he replaces almost all of your discarded balls with mind-numbing quantities of fresh balls.

Now that would make for a boring puzzle, wouldn't it... So of course, the answer is, contrarily, as Martin Gardner writes, "Incredible as it seems at first, there is NO WAY to avoid completing the task." [bold added] i.e., mathematically-speaking, over enough time, you will ALWAYS empty out your bin! Completion of the task is "unbounded" (there is no way to predict the number of steps needed to complete it, and indeed it could be a VERRRRY large number), but the box MUST empty out within a finite number of steps!
Raymond Smullyan proved this wild result with advanced math, but happily it only requires logical induction to grasp the general reasoning involved:

Realize that once there are ONLY "#1" balls left in the box you simply discard them one by one (no replacement allowed) until the box is empty -- that's a given, and then the game is over, no matter how long it takes. In the simplest scenario we could start with only "#2" and "#1" balls in the box. Every time you remove a "#2" ball, the genie can ONLY replace it with "#1" balls, thus at some point (it could take a long time, but it must come) ONLY #1 balls will remain, and then essentially the task is over.
S'pose we start with just #1, #2, and #3 balls in the box... Every time a #3 ball is tossed, it can only be replaced with  #1 or #2 balls. Eventually, inevitably, we will be back to the #1 and #2 only scenario (all #3 balls having been removed), and we already know that situation must then terminate.
The same logic applies no matter how high up you go as a starting point (you will always at some point run out of the very 'highest-ranked' balls and then be working on the next lower rank until they run out, and then the next, and then the next...); eventually you will of necessity work your way back to the state of just #1 and #2 balls, which then convert to just #1 balls and game over (even if you remove ALL the #1 and #2 balls first, you will eventually work back down and be using them as replacements). Even if you start with quadrillions of balls in your bin, and they range from say #9 to #774,642,977,528,045,219,368... doesn't matter, eventually you'll end up back to just #1 balls....

The result is both simple and amazing, and reminiscent of some of Cantor's mind-wrenching deductions.

Tuesday, December 10, 2013

Puzzles, Puzzles!


I usually do puzzles over at the Math-Frolic site, but will switch it around this time....

First, I'll just link to a couple of recent puzzle offerings I liked from Richard Wiseman and Presh Talwalkar to warm you up, in the event you missed them:

1)  http://richardwiseman.wordpress.com/2013/12/02/answer-to-the-friday-puzzle-234/

2)  http://tinyurl.com/o8rufko

By the way, if you're into game theory, I notice that Presh has a new game theory eBook out, "The Joy of Game Theory" -- (Presh is great at finding interesting problems and explaining them well): http://ow.ly/rCtJ6  


3) As we approach the year-end, I realized I haven't re-run one of my all-time favorite Raymond Smullyan brain twisters lately (originally published by Smullyan in the "Annals of the New York Academy of Sciences" in 1979, Vol. 321). Apologies to long-time readers here, who didn't even like this puzzle the first time around! ;-) But what I love about it, is that it is rather involved, and requires some fairly heavy-duty math to prove the very counter-intuitive outcome, yet can be verbally explained so as to be comprehended logically without employing any real mathematics whatsoever. I've re-written it, from Martin Gardner's excellent treatment of it in his "The Colossal Book of Mathematics" (chapter 34)... without further adieu:

Imagine you have access to an infinite supply of ping pong balls, each of which bears a positive integer label on it, which is its 'rank.' And for EVERY integer there are an INFINITE number of such balls available; i.e. an infinite no. of "#1" balls, an infinite no. of "#523" balls, an infinite no. of "#1,356,729" balls, etc. etc. etc. You also have a box that contains some FINITE number of these very same-type balls. You have as a goal to empty out that box, given the following procedure:

You get to remove one ball at a time, but once you remove it, you must replace it with any finite no. of your choice of balls of 'lesser' rank. Thus you can take out a ball labelled (or ranked) #768, and you could replace it with 27 million balls labelled, say #563 or #767 or #5 if you so desired, just as a few examples. The sole exceptions are the #1 balls, because obviously there are no 'ranks' below one, so there are NO replacements for a #1 ball.

Is it possible to empty out the box in a finite no. of steps??? Or posing the question in reverse, as Gardner does: "Can you not prolong the emptying of the box forever?" And then his answer: "Incredible as it seems at first, there is NO WAY to avoid completing the task." [bold added]
Although completion of the task is "unbounded" (there is no way to predict the number of steps needed to complete it, and indeed it could be a VERY large number), the box MUST empty out within a finite number of steps!
This amazing result only requires logical induction to see the general reasoning involved:

Once there are only #1 balls left in the box you simply discard them one by one (no replacement allowed) until the box is empty --- that's a given. In the simplest case we can start with only #2 and #1 balls in the box. Every time you remove a #2 ball, you can ONLY replace it with a #1, thus at some point (it could take a long time, but it must come) ONLY #1 balls will remain, and then essentially the task is over.
S'pose we start with just #1, #2, and #3 balls in the box... Every time a #3 ball is tossed, it can only be replaced with  #1 or #2 balls. Eventually, inevitably, we will be back to the #1 and #2 only scenario (all #3 balls having been removed), and we already know that situation must then terminate.
The same logic applies no matter how high up you go (you will always at some point run out of the very 'highest-ranked' balls and then be working on the next rank until they run out, and then the next, and then the next...); eventually you will of necessity work your way back to the state of just #1 and #2 balls, which then convert to just #1 balls and game over (even if you remove ALL the #1 and #2 balls first, you will eventually work back and be using them as replacements).
Of course no human being could live long enough to actually carry out such a procedure, but the process must nonetheless amazingly conclude after some mathematically finite no. of steps. Incredible! (too bad Cantor isn't around to appreciate this intuition-defying problem).

Mind… blown….