Thursday, October 31, 2013

The Sequence I Desire. Magic: When Divided, No Remainder

On 21 October 2013, Martin Gardner, the best friend mathematics ever had, would have turned 99. Card Colm was launched here back in Oct 2004, to honor his 90th birthday. Other birthdays of his have been causes for celebration too. So it seems appropriate, as Martin and the Card Colm he inspired enter their 100th and 10th years, respectively, that this month's offering is based on something learned from of a good friend of Gardner's, Dr. Irving Joshua Matrix, the greatest numerologist the world has ever known.

The $36 Gamble

Start by addressing your audience with words along the lines of, "We all know how to tell if a number is divisible by 2, 3, 5 or 9. It's also not hard to do in the case of division by 4, 6 or 8. Divisibility by 7 is trickier, of course, but don't worry, thanks to an ingenious alternative method learned from Art Benjamin, that's within reach too."

Continue, "We'll test out those divisibility rules using the digits in a randomly chosen large number. Let's keep a calculator on hand to check our work. I need a volunteer." Pause, as somebody steps forward. "Thank you! You'll determine a nine-digit number completely by chance, using cards from any suit of your choice, after you've shuffled the cards in this deck. That number might be a multiple of 9!, which is 362880, so that it would be divisible by all the digits from 1 to 9 inclusive, but it's not so likely. Instead, we'll focus on the first digit, then the first two digits, next the first three digits, and so on, checking if there is a remainder when each of these is divided by 1, 2, 3, respectively, each time. If there is a remainder, I'll pay you that much in cash. Think of it as a reward for the work you're about to do! Let X be the total amount I pay you. Probabilists call X a random variable, because how much I pay you varies depending on the randomness of the shuffling you're about to do."

Continue, "Of course every one-digit number is divisible by 1, so you can't win there. For the two-digit number we'll get looking at the first two digits of the nine-digit number you come up with, clearly there's a 1 in 2 chance that it will be even, in which case I'll owe you nothing, and also a 1 in 2 chance that it's odd, in which case it has remainder 1 upon division by 2, so I'll owe you $1. When we move on to the three-digit number we'll get looking at the first three digits of the nine-digit number you come up with, there's a 1 in 3 chance that it will be divisible by 3, in which case I'll owe you nothing. It's more likely to have remainder 1 or 2 when divided by 3, so I'll owe you $1 or $2. It gets more complicated as the number of digits we look at increases. At the very end, we'll check if the entire nine-digit number is divisible by 9. As before, if division by 9 leaves a remainder, say 5, then I'll give you $5. I guess, 8 times out of 9 there, I'll be paying you something."

Put a wad of $1 bills on the table, and say, "The way I see it, in the worst case scenario, I'll have to hand over $1 + $2 + $3 + $4 + $5 + $6 + $7 + $8. As any smart child knows—you don't have to have the brains of a young Gauss to work this out—that adds up to $9 x 4 = $36. I went to the bank this morning and withdrew exactly that much money, just in case, in $1 bills. Your goal is to get as much of it as you can. There are some interesting mathematical questions, such as, how much can you expect to win on average, and how much might your winning total vary overall? Let's leave those for the probabilists to worry about. You get one shot at this. What can go wrong? You can't lose!"

Beating the Odds Gods

A deck of cards is produced, and its faces flashed to the audience to show that it's well mixed. The volunteer is asked to name any suit, as you split the cards into four face-down piles. Let's suppose she says "Hearts." Now, have her shuffle those piles together. Those can be three riffle shuffles—starting with two piles at a time, twice, then shuffling the resulting half decks together—or the obvious four-pile extension of the triple rosette shuffle below, introduced here the last time.


Take the cards back and fan them face up again so everyone can see that they are now even more jumbled. Say, "We only need the Hearts of single-digit values, namely the Ace to 9," as you openly pull those out in the order in which they occur, to form a new face-down pile. Shuffle the rest of the deck one last time, and set those cards aside. Announce, "Here they are, the nine Hearts we need, your chosen suit in the random order determined by your shuffling." Lay them out in a face-up row, resulting in a display such as this:


With a piece of paper quickly cover up all all but the first card, commenting that 3 is of course divisible by 1 with no remainder. Next, slide the piece of paper to expose the eight, adding, "Now I see 38, which is even. Since there is no remainder upon division by 2, I don't owe you anything yet. Now slide the piece of paper to expose the Ace. Say, "Since the digits of 381 add up to 12, that's divisible by 3. Phew! How long can my luck hold out? Slide the piece of paper over once more, to expose the six. Say, "The last two digits of 3816 are divisible by 4, so 3816 itself is divisible by 4. Amazing! Feel free to check that with this calculator."

The next time you slide the piece of paper over, to expose the five, you end up with 38165, which is divisible by 5 since it ends in 5. Again, no cash is handed over since there's no remainder. When the next digit is exposed, you get 381654. Division by 2 yields 190827, and the digits of that number sum to 27, so it's divisible by 3, and hence 381654 is divisible by 6, without remainder.

It's not hard to guess where this is going. When the seventh digit is exposed, you get 3816547. This is the only tricky one to deal with. Using the Art Benjamin approach, we note that since 63 is divisible by 7, then 3816547 is divisible by 7 if and only if 3816547 + 63 = 3816610 is. That, in turn, holds if and only if 381661 is divisible by 7. Since 21 is divisible by 7, then 381661 is if and only if 381661 - 21 = 381640 is, which holds if and only if 38164 is. Continuing, we see that 38164 is divisible by 7 if and only if 38164 - 14 = 38150 is divisible by 7, if and only if 3815 is, if and only if 3815 + 35 = 3850 = 7 x 550 is. So all of these numbers are divisible by 7, and there is no remainder when 3816547 is divided by 7. This too can be verified with the calculator.

Exposure of the eighth digit reveals 38165472. Division by 2 yields 19082736, whose last two digits are 36, so that's divisible by 4 and the original number is divisible by 8.

Say, "You have one more chance to win between $1 and $8 from me, are you ready?" The entire random nine-digit number is 381654729, whose digits sum to 45, so it's divisible by 9 without remainder. Your $36 remains on the table, untouched. You've beaten the odds gods and escaped unscathed. Conclude, "Weird, what are the chances of that happening? Every single time, when divided, there was no remainder! I'll ask my probabilist friends what kind of random variable X is. A very lucky one I guess, at least for me. I wonder what its standard deviation is?" Pocket the $36 on the table.

Imperviously Nibbled

The deck is of course rigged, and in such a way that the indicated handling still leads without fail to 381654729, the unique nine-digit polydivisible number using each of 1 to 9 just once. The Answers and Commentary section for Chapter 21 of The Magic Numbers of Dr. Matrix reveals that while Jaime Poniachik of Buenos Aires had first posed to the author the problem of finding such an arrangement of the digits 1 to 9, it was his wife Lea Gorodisky who had invented it.

Start by separating the deck by suits, and setting aside the sixteen cards of no interest, namely the 10s, Jacks, Queens and Kings. For each suit, arrange the Ace to 9 in order 381654729, cutting three of the resulting four piles in notably different places. In each of the four resulting piles, insert three of the Jacks, Queens and Kings randomly, spread out and aiming for good colour variation to withstand a casual glance later. Put a red-dominant twelve-card pile face down on the table, adding a 10 on top, then put a black-dominant pile on top of that, followed by two 10s, another red-dominant pile, the final 10, and then the last, black-dominant pile.

At showtime, this carefully arranged deck can be quickly fanned face-up to the audience as you ask for a suit to be named. Split it half, seeking the two 10s in the middle for guidance; the split should be within one card of the gap between those. Pick up the first pile, saying, "Hearts, eh?" as you scan the faces once more and split into face-down quarter decks using the buried 10 as a guide. Quickly repeat for the other half deck, adding, "I'm going to ask you to shuffle these to mix them up even further."

Whether the shuffling now done by the volunteer is riffling or rosetting, the case k = 4 of the solitaire principle explained here two months ago comes to the rescue:
  • If four piles of cards, one for each suit, each running in some fixed order, are rosette shuffled together, and the cards in the resulting packet are dealt one at a time into piles separated by suit, then the original piles will be reformed, in reverse order.
The key cards (Ace to 9) within each suit didn't start in the same order, to reduce the risk of early detection by an alert audience, but it doesn't matter. Cyclically, all is well. Upon receiving the deck back after the shuffle, while scanning and fanning again to show randomness, discretely cut anywhere between the 9 of Hearts and 3 of Hearts and reassemble the resulting two parts in reverse order. Then, when you pull out the nine desired Hearts, they will emerge in the right order. Nothing can go wrong.

Nothing, indeed, unless you can't remember the sequence of numbers central to the whole effect. One way to come up this most magic number of Dr. Matrix, as remarked in the book referenced above, is to note a pleasing geometric pattern when the digits in question are traced out in the unique magic square of order 3. If that's too much work, or you can't remember that magic square either, you can always count on the title of this column: The Sequence I Desire. Magic: When Divided, No Remainder.

"Imperviously Nibbled" is an anagram of "Polydivisible Number."

Colm is giving a public lecture on mathematical card magic at American University, at 7pm on Fri, 8 Nov, co-sponsored by the MAA, after which there will be a booksigning for Mathematical Card Magic: Fifty-Two New Effects (AK Peters/CRC Press).

Friday, August 30, 2013

Rosette Shuffling Multiple Piles

Mathematical Card Magic: Fifty-Two New Effects (AK Peters/CRC Press) is finally out. It has sizable overlap with the past nine year's worth of Card Colms here—about 75%?—but is organized quite differently. It's also written for a wider audience and generally avoids technical language. What follows is a taster of one of the nagging questions addressed in it, first publicly raised two years ago in A Call For A New Shuffle Principle (Need Rot Sextet?).

Limit Plus Peel

Some observations and assertions of a mathematical nature are easy, or at least routine, to generalize from two to three or beyond. Others are trickier (e.g., cake cutting), and a few turn out to be impossible (e.g., angle trisection using only a straightedge and compass). In the August 2011 Card Colm mentioned above, we made an appeal for a new kind of generalization of the ever-popular Gilbreath shuffle principle, asking

Is there a way to riffle shuffle three or more piles of prearranged cards
and expect some order to remain, without assuming perfect interweaving?

The good news is that this month we have something to report along these lines. We can now sleep at night, although a really impressive magic application is still proving elusive.

Treeless Shutoff

First it pays to switch our focus from riffle shuffling—which in the Gilbreath context follows the dealing out of some cards from a packet to form two piles—to something equivalent to that, which has a more obvious generalization to three or more piles. We're referring to Lennart Green's rosette shuffle as depicted below. Two side-by-side piles are twirled into rosettes with the fingers before being pushed together and squared up.



When we say that this is equivalent to riffle shuffling we really mean that the following internal coherence or solitaire principle applies.
  • If two piles of cards, running Ace to King of Hearts and Ace to King of Spades, respectively, are riffle or rosette shuffled together, and the cards in the resulting packet are dealt one at a time into two piles separated by suit, then the original piles will be reformed, in reverse order.
In other words, we'll never be faced with dealing the 7 of Hearts onto a Red card other than the 6 of Hearts. By the time we get to that 7, we can be sure that the Ace, 2, 3, 4, 5 and 6 of Hearts will already have been dealt, in that order.

Sheaf Bullfighters

In the first August edition of Card Colm, back in 2005, we explored the first (or basic) Gilbreath principle from 1958, which concerns the structure retained when two piles of cards are riffle or rosette shuffled, assuming that we start with an alternating packet of some kind and then deal "about half" of the cards to the table to give rise to the two piles. Generalizing that to situations where the packet started by repeating a cyclic pattern of length greater than two leads easily and naturally to the second (or generalized) Gilbreath principle from 1966, which we covered here in August 2006.

In a nutshell, the Gilbreath Principle says that
  • If we start with a packet of sm cards that consists of m repeated stacks of a particular set of s cards, each set being in the same fixed order with respect to some characteristic of interest (such as color, suit, or value), and we count out some of these to the table—thereby reversing their order—and then riffle shuffle together the two resulting piles, we're sure to get a packet in which each stack of s cards pulled off the top contains exactly one card of each of the key types, in some order.
The basic case is when s = 2. If the cards alternate Red and Black, over and over, at the outset, then the shuffled packet has the property that the cards in positions 1-2, 3-4, 5-6, etc, are always of different colors, though we can't say in which order Red and Black cards occur in each such pair.

For the case s = 3, we could start with a packet consisting of trios of Spades, Diamonds, and Hearts, in that order, over and over. The shuffled packet then has the property that the cards in positions 1-3, 4-6, 7-9, etc, always consist of one each of those three suits, again in some order. When s = 13, starting with a packet consisting of four stacks of the thirteen card values, in the same fixed order, we end up with four clumps (the cards 1-13, 14-26, 27-39 and 40-52) consisting of the thirteen values in some mixed order.

Lovely though all of this is—and it has spawned a ton of magic over the last half century—it's well-explored territory. What more is there to say? Persi Diaconis & Ron Graham give a complete characterization of such matters in what they call The Ultimate Gilbreath Principle on page 70 of their beautiful, inspirational and prize-winning book  Magical Mathematics: The Mathematical Ideas that Animate Great Magic Tricks (Princeton University Press, 2011). Some Gilbreath variations were considered here in subsequent Augusts, in The Bligreath Principle (2009) and Gilbreeath Shuuffling (2012). Just six months ago we couldn't resist sharing a new twist on all of this due to John Hostler in Flushed with Embarrassment (February 2013). Normal Gilbreath's own long-awaited book is coming soon, from L&L Publishing.

But there is another direction in which to turn, in search of a different kind of thrill. What if we rosette shuffle three or more piles with some simple structure?



Certainly, the earlier solitaire principle extends in the obvious way:
  • If k piles of cards, running 1-n, representing k "suits," are rosette shuffled together, and the cards in the resulting packet are dealt one at a time into k piles separated by suit, then the original piles will be reformed, in reverse order.

Canonical Indecencies Pix

Now we highlight something Karl Fulves pointed out in his hard-to-find book Riffle Shuffle Set-Ups (1968), which saw distribution only in magic circles. The rosette shuffle wasn't on his radar screen, of course, he was thinking in the context of riffle shuffling multiple piles, say, two at a time, until he had a single packet again. Even for the case of two piles, this fact has languished in obscurity for decades.
  • If k piles of cards, running 1-n, representing k "suits," are rosette shuffled together, and the cards in the resulting packet are peeled off k at a time, then if the jth set matches in value, they have value j.
In other words, if we rosette the four suits of a standard deck together, each having started in the order Ace to King, and we find that the third, seventh, and eleventh quadlets pulled off the top all match across the board, then they must consist of the 3s, 7s, and Jacks, respectively.

In practice, this is better performed with the suits arranged in some less obvious but memorized order. For instance, suppose we use the starting arrangement 3, 5, 10, Ace, 9, Jack, 2, 8, 7, Queen, 6, 4, King, in each suit. (This is much favored by John H. Conway, and is based on the mnemonic "The Five Tenacious Boys Nicely Joke To Hated Servant Girls Sick For Absent Kings"—we've omitted Jokers.) Have an audience member twirl the four face-down suit piles and mush them together, then turn away and request that cards be peeled off four at a time and inspected. If any such quadlet matches, you are informed. If the fifth and eighth quadlets match, say, "Coincidences I can explain." Confidently announce that they are the Jacks and 8s, respectively.

Incidentally, Fulves also has something to say about the values in any situation where the jth set of k cards contains of one of each suit (with none repeated).

Arrange Wall Modish

A year ago—and a full year after we issued the Call For A New Shuffle Principle (Need Rot Sextet?)—Ron Graham graciously responded to repeated prodding by coming up with the following key breakthrough, shared here with his kind permission.
  • Arrange a packet in cyclic order 0, 1, 2, 0, 1, 2, .... Now split into three piles that have as their top cards, 0, 0, and 1. In other words, the cards in the three piles are in the order 0, 1, 2, 0, 1, 2, ..., 0, 1, 2, 0, 1, 2, ... and 1, 2, 0, 1, 2, 0, ... . Rosette shuffle them together, so that in the result, the relative order of the three piles is preserved. Start removing sets of three consecutive cards at a time. Then none of these three-card sets will have all values the same.
That's not to say that three cards of the same type can't end up together, one coming from each pile, but they won't all be in any one of the triplets 1-3, 4-6, 7-10, and so on; they'd have to straddle two such triplets. More generally, Graham offered the following, which we think of as a kind of Non-Alliance Principle:
  • Start with a packet arranged cyclically as 0, 1, ..., , s-1, 0, 1, ..., s-1, and then break it into s piles, and rosette shuffle those together. If we now remove sets of s cards at a time from the top, and the top card of the original ith pile is denoted by ai, then assuming the sum of the ai is not 0 (mod s), we can be sure that none of the sets of s cards will have all values the same.
For s = 2, this is equivalent to something we have known for a long time. It says that if we break an alternating packet into two piles whose top cards don't match and then rosette shuffle, we can be sure that the cards in positions 1-2 won't match either, and likewise neither will those in positions 3-4, 5-6, and so on. This is the basic Gilbreath principle once more: the careful splitting suggested here is a quick alternative to the usual dealing out of cards to form the two piles (a shortcut which only works for alternating packets).

For s = 3, start with a packet cycling Clubs, Hearts, and Diamonds, and split it into three piles that have as their top cards Clubs, Clubs, and Hearts. Rosette shuffle, and pull cards off the top three at a time. No such triplet will consist of three cards of the same suit. The same conclusion also holds whenever the top cards of the three piles account for exactly two of the three suits in play. The principle is not saying anything when the top cards of the three piles are all the same, or account for one of each suit; but perhaps those cases yield to a different kind of analysis.

More details—and a preliminary magic application—can be found in Chapter 8 of Mathematical Card Magic: Fifty-Two New Effects (AK Peters/CRC Press, 2013).

"Limit Plus Peel" is an anagram of "Multiple Piles," "Treeless Shutoff" is an anagram of "Rosette Shuffles," "Sheaf Bullfighters" is an anagram of "Gilbreath Shuffles," "Canonical Indecencies Pix" is an anagram of "Coincidences I Can Explain," and "Arrange Wall Modish" is an anagram of "Ronald Lewis Graham."

Thursday, June 27, 2013

Subtler Bracelets and Dissociative Disorders

Things to Come

Card Colm has appeared here more or less every two months since October 2004, with more than 52 columns now in the bag. As we approach the completion of its ninth year, we're also getting closer to North America's premier summer mathematics celebration, MAA MathFest.

This year it's in Hartford, CT, and at the Recreational Mathematics: New Problems and New Solutions session there on Thursday, August 1, there's a talk on "Fitch Cheney's Five Card Trick for Four or Three Cards"—which is appropriate, as Cheney spent much of his professional life in the department of mathematics at the University of Hartford. The four-card version has been published twice by the MAA, here. The three-card take on this was developed on the way to MathFest 2012 in Madison last August, and was performed live there a few days later at the end of an MAA minicourse on mathematical card magic. The Hartford presentation will mark its debut with explanation. (It's scheduled to appear in Math Horizons in the first half of 2014.)

MathFest also sees the appearance of the 380-page full color Mathematical Card Magic: Fifty-Two New Effects (A K Peters), along with two book signing opportunities in the exhibtion hall (Thursday and Friday at 3pm). This volume actually contains more than 52 effects, along with an equal number of new mathemagical principles—but they are not in a natural one-to-one correspondence. Despite the coincindence of their also having been just as many Card Colms over the years, those aren't aligned with the effects in the book either. Yes, there is overlap—about three-quarters of the material?—but the book is organized differently, and is almost a grave of diamonds. It's also written for a more general audience and mostly eschews technical mathematical language.

Subtler Bracelets

In the June 2008 Card Colm Sum-Rich Circulants we continued a thread on bracelet beads started the previous year. Specifically, we focused on the g4g8 bracelet obtained by joining the ends of

[ 8     5    4    1    7    6    3    2 ].

Here's a good card incarnation:

 
 
Counting out 1, 2, ..., 8, reveals a "suitable" geometric pattern; classic cycling CHaSeD order is used. Moreover, this card display can be viewed as a capital omega (Ω), which brings to mind the word "alphabetical"—and amazingly, Eight, Five, Four, One, Seven, Six, Three, Two are indeed in that easy-to-remember order.

Here's the magic: plant these cards in order on the top of a deck and maintain them there throughout some fair-seeming shuffling, before dealing them face down in a circle. Have three adjacent cards peeked at and remembered by different spectators, while you turn away, and have those values summed. Upon being told this total you name all three selected cards. The reason is that this bracelet is sum-rich for triples: the eight possible sums of three adjacent card values are distinct. In fact, we get the numbers 17, 10, 12, 14, 16, 11, 13, 15, which are the eight consecutive numbers 10, 11, 12, ..., 17 in a special order.

This array first saw the light of day at the G4G8 conference in Atlanta in March 2008. Four years later, at the G4G10 conference, mathematician Steve Butler unveiled what we call the g4g10 bracelet, obtained by joining the ends of

[ 1     3    4     5    9    10    6    7    8    2 ].


Not only is this sum-rich for three adjacent beads, it's easily checked that it's also sum-rich for two adjacent beads. (The latter property doesn't hold for the g4g8 bracelet [8 5 4 1 7 6 3 2], as its double sums are 13, 9, 5, 8, 13, 9, 5, and 10.)

But wait, there's more: Butler's g4g10 bracelet is magical in a new and unanticipated way. The possible sums for adjacent triples and doubles are not only as large as they could be, as sets, they also have no overlap, being the sets {8, 12, 18, 24, 25, 23, 21, 17, 11, 6} and {4, 7, 9, 14, 19, 16, 13, 15, 10, 3}, respectively. Hence, in a card implementation as above, with 10 specific cards used and their suits memorized, you can deal these face down in a circle before turning away and asking that any two or three spectators select adjacent cards and reveal the value total to you. Without even knowing how many people were involved, you can reveal all. Pretty impressive, eh? Thanks to Steve Butler for sharing his wonderful discovery and allowing us to pass it on.

Dissociative Disorders

In the February 2008 Card Colm Additional Certainties, we broke rank with ordered beads on bracelets, abandoned the adjacency assumption, and considered sets such as {1, 2, 3, 5, 8, 13}, {1, 3, 4, 7, 11}, and {3, 4, 6, 8, 12}, which have the the property that if any two numbers from any one of them are added, then you can deduce what the numbers are from the total. In most cases it also works for three numbers, but it in general you'll also need to know how many values are being summed. For instance, if you are told that (Lucas) numbers from the second set sum to 8, but you don't know whether two or three were involved, then you're in trouble, as it could be 1 + 7 or 1 + 3 + 4. (In the June 2009 Card Colm Two Summer Difference Certainties, we extended these ideas to a wider class of sets, but the same ambiguity remained.)

It's natural to ask if something like Butler's g4g10 bracelet exists in the set context, for card values. Let's go all the way and seek sets of k numbers in the range 1-13 with the property that all 2k-1 nonempty subsets have distinct sums. Trivial examples are {1, 2, 4, 8} (powers of 2) and {1, 3, 9} (powers of 3), and the more interesting {1, 3, 6, 13}, in which each value is 1 more than twice the previous one. There are many examples of size 4; find some more.

Now find one of size 5. How many such examples are there? Are there more if we relax the demands and only ask that the 2-sums and 3-sums be distinct (and all different from one another)? Can we find larger sets if we allow the use of negative numbers too (represented by Red cards, as opposed to Blacks for positive ones)?

The upshot is that once suits are also decided upon, five cards can be planted at the top of a deck—maintained there throughout some shuffling—then dealt face down in a circle, before you turn away and ask that any number of cards be peeked at and remembered. Once the sum is announced, you can figure out just how many numbers are involved, and then name all of the selected cards.

The existence of such sets of numbers—they are known in the business as dissociated sets—was brought to our attention earlier this month by Neil Calkin of Clemson University. More details can be found in the Coda of Mathematical Card Magic: Fifty-Two New Effects (A K Peters), to be published August 2013.

"Subtler" is an anagram of "Butler's" and "a grave of diamonds" is an anagram of "devoid of anagrams."

Tuesday, April 30, 2013

Never Forget a Face (Double-Dealing with a Difference)

Low-Down Triple and Quadruple Dealing Reviewed


In October 2004, in the inaugural Card Colm, Low Down Triple Dealing, we presented something discovered accidentally in the spring of 2003 while living in a Madrid suburb. It concerns surprising properties of a kind of "low-down deal"--in which at least half of the cards in a packet are dealt to a pile and the rest are dropped on top--done three or four times, dealing the same number of cards each time. More recently, in February 2011's Low-Down Double Dealing With the Big Boys, we discussed something useful that can be said about only doing it twice, in the case of palindromic (i.e., symmetric) packets.

In the October 2008 print incarnation of "Low-Down Triple Dealing" from the Martin Gardner tribute book A Lifetime of Puzzles (A K Peters), we mentioned a generalization first brought to our attention about a year earlier by Martii Siren, then (and now) editor of Finnish magic magazine Jokeri. He wrote about it in that publication in March 2008. Austrian magician Werner Miller also took advantage of this observation in a trick in his 2010 manuscript Enigmaths. Our upcoming Mathematical Card Magic: Fifty-Two New Effects (A K Peters) devotes an entire chapter to this extension of Low-Down Triple Dealing, so it seems like an opportune time to introduce it here. 


Let's start with the basics of the original low-down triple dealing. Imagine a face-down packet which runs Ace-King of Hearts. Fanned face up from left to right it looks like this: 



Now fix a number between 7 and 13, perhaps 9. Hold the face-down packet in one hand, and deal 9 cards to a pile, thus reversing their order. Drop the remaining 4 cards on top. Fanned face up from left to right, we now have: 



A second application of the "deal 9, drop 4" move converts that to this:



A third application of the "deal 9, drop 4" move converts that in turn to:



The first surprise is that the original bottom card (the King) is now on the top, in fact many of the original bottom cards are now on top in reversed order. This low-down triple dealing observation is the basic for many magic effects, some of which are explored in Low Down Triple Dealing. Also discussed there, and in much greater detail in the opening chapter of Mathematical Card Magic: Fifty-Two New Effects (A K Peters), is the fact that a fourth application of the "deal 9, drop 4" move restores the packet to its original order, as is easily checked above. The only thing about 9 which makes all of the this work is that it's at least half of the packet size, 13, or, equivalently, 9 + 9 is at least 13.

Low-Down Dealing With a Difference

Let's start once more with a face-down packet which runs Ace-King of Hearts, and this time consider any two numbers s and t for which s + t is at least 13, or to put it another way, two numbers which are at least half of 13, on average. For instance, we might select 5 and 10. Focus on the 5 first: deal 5 cards to a pile, thus reversing their order, and drop the remaining 8 cards on top. Fanned face up from left to right, we now have:



Next, focus on the 10: deal 10 cards to a pile, thus reversing their order, and drop the remaining 3 cards on top. Fanned face up from left to right, we now have: 



Now we return to the 5: deal 5 cards again to a pile, thus reversing their order, and drop the remaining 8 cards on top. Fanned face up from left to right, we now have:



At this point we have done three deals (of sizes 5, 10 and 5, respectively), and 10 of the original bottom cards are now on the top, in reverse order. 

Furthermore, it's clear that one more deal of 10 cards to a pile, dropping the remaining 3 cards on top, restores the packet to its original order. All told, dealing 5, 10, 5, and 10 cards, each time dropping the rest on top, restores any packet of size 13 to its original order, just as four deals of 9 cards did. 

Try it dealing 10, 5, 10, and 5 cards, instead, i.e., using the same two numbers but switching the order, once more starting with the same packet of 13 cards as above. It works there too, and after the third deal it will be seen that the bottom 5 cards are on the top, in reverse order. Try it again, dealing 3, 11, 3, and 11 cards, or dealing 6, 9, 6, and 9 cards. 

All of the above holds more generally: starting with a packet of size n, and any two numbers s and t for which s + t is at least n, i..e., numbers which are at least half of n, on average, then if we first deal s cards, dropping the rest on top, then deal t cards, dropping the rest on top, then deal s cards again, dropping the rest on top, it turns out that the bottom card appears on the top. Moreover, a final deal of t cards, dropping the rest on top, restores the packet to its original order. The Low Down Triple Dealing discovery of a decade ago is the special case s = t. 

There is much to explore when s and t are different, and Chapter 5 of Mathematical Card Magic: Fifty-Two New Effects (A K Peters) is devoted to such fun. We think of the first two deals and drops, dealing s and t cards, respectively, as a kind of double-deal. We close with a spelling application which works for any 9 cards.


Never Forget a Face


Use any 9 cards from a deck. Have a spectator shuffle them and call out a number between 1 and 9 inclusive, then looking at and showing around the card in that position while you look away. Have the card replaced in that position and take the packet of nine cards, holding them under the table. Claim that you are feeling the face of the card shown around, and that your fingers never forget a face. 

Explain that you want the spectator to do a packet randomization based on the spelling of the name of the card in question, demonstrating with cards from the rest of the deck. For instance, using a packet of around 10 cards, you say, "Suppose your card is the Nine of Diamonds, then first I will spell out the word NINE, dealing one card to the table each time, and after that dropping what is left on top." Matching your words, you deal out 4 cards and drop the remaining ones on top. "We do it again for DIAMONDS." This time, deal out 8 cards and drop the remaining ones on top. Repeat, once for the value and once for the suit. Now set those cards aside, and have the spectator do it, using the nine cards from before and the value and suit of the selected card. Make sure it's done twice, and turn your head while it is done so that you have no knowledge of the number of letters used. 

Take back that packet of nine cards, and hold it under the table again. Stress that after the unknown card value and suit was used to mix the cards, twice, you obviously don't know where the selected card is. Bring the cards into view once more, and remind the audience that your fingers never forget a face: place one card face down on the table and ask what the selected card was. When the card is named, have the face-down card turned over, it should match. 

Based on the earlier discussion, in the case of Nine of Diamonds, setting s = 4 and t = 8, since 4 + 8 > 9, we know that two rounds of double-dealing and dropping as suggested, using the card value and suit for the respective deals each time, restores the packet to its original order. So if the card selected started in position 3, then it's back there after you get the cards back. However, for the shorter words corresponding to cards such as the Ace of Clubs, where s = 3 and t = 5, there are no such guarantees. Actually, these are the only values of s and t to worry about arising from card values (which have 3, 4 or 5 letters) and suits (5, 6 or 8 letters), so basically it's the just Ace, Two, Six, Ten and Clubs which need separate consideration. 

One option is simply to make sure those five cards are not among the nine which the spectator uses, but let's not take the easy way out. Imagine a face-down packet Ace-9 of Diamonds. It is readily checked that dealing 3 cards, and dropping the rest, then dealing 5 cards, and dropping the rest, all done twice to the packet, and fanning the results face up from left to right, yields: 




In other words, two application of double-dealing in this case doesn't restore the whole packet to its original order, but the cards in positions 2, 3, 4, 5, 6, 7 and 8 are certainly back where they started! So if the selected card is in any of those positions, you'll know where to find it after the double spelling of value and suit, regardles of what cards in the deck was used to determine the dealings and droppings. If the selected card is in position 1, 4 or 9--admittedly rather square choices--simply move it, under the table, to one of the other six positions, remembering which one. You retrieve it from the same position, also out of sight, after the spectator's spellings and droppings are completed. 

This effect was of course inspired by Jim Steinmeyer's landmark "Nine Card Speller" from twenty years ago (available today in his booklet Impuzzibilities (2002), as discussed in the February 2009 Card Colm, Esteem Synergism. As in that trick, the card can always be located no matter what its identity, leading to the amusing possibility of a repeat performance where the spectator is encouraged to lie about the card value and suit when spelling. (Lying about the position is not an option, however.) 

There is a workaround, if desired, to avoid having to worry about the cards in positions 1, 4 or 9. First, ask for a number between 1 and 9, and reject 1 or 9 if either is suggested. Second, if 4 is called out, have the packet of 9 cards dealt to a pile, with the card in position 4 being shown around before the rest are dealt on top of it. It's now in position 6 from the top, so all is well. 

Thursday, February 28, 2013

Flushed with Embarrassment


Welcome to our second new mathemagical offering for this month. The first one, In My Heart of Hearts: Valentine's Day Special, appeared as one of the current author's Huffington Post pieces. 

Six months ago here, in the August 2012 Card Colm Gilbreeath Shuuffling, we considered yet another Gilbreath shuffle variation, a topic we revisit from time to time in August, e.g., see 2005, 2006, and 2009. 

In November, magician John Hostler from St. Louis was kind enough to share an exciting discovery of his from last summer which he calls the Triskadequadra Principle (it's pronounced TRISK-a-de-QUA-dra). Below, we present an application of the ideas which just can't wait until next August. While John only develops the principle for four cycling suits such as CHaSeD (Clubs, Hearts, Spades, Diamonds), some version of the key ideas work for cycles of any length. We felt that suitable modifications were appropriate, and came up with an amusing multiple poker hand offering with a kicker at the end. 

Thanks to mathematician Neil Calkin of Clemson University for crucial stack refinement input in December. 

We leave it to John to explain the Triskadequadra Principle. His recent 24-page booklet The Triskadequadra Principle has all the details, along with some great applications to card magic. The nature of the results obtained bears a resemblance to those discussed in Gilbreeath Shuuffling, and the same mathematical method of analysis explains both principles. Magician and prolific author Karl Fulves had written of related explorations, under the name the "Self-Correcting Set Up" principle, for the shuffling of two packets running Ace—King, in his rare magic insider book Riffle Shuffle Set Ups (originally published in 1968).

The effect below, as well as an examination of the Triskadequadra Principle for cycles of different lengths, putting it in the context of Gilbreath shuffling and known variations, is in Chapter 8 of the upcoming Mathematical Card Magic: Fifty-Two New Effects (A.K. Peters), which is due out in time for MAA MathFest in Hartford, CT.


Flushed with Embarrassment—How It Looks

Gather together five poker players and a poker novice. Hand the latter a packet of cards, and invite him or her to cut it several times, then split it into two and riffle shuffle those parts together, and finally to give it one more cut. 

Deal out five poker hands for the aficionados of the game, and have each person discard their worst card face down. Retain those five cards in a pile in front of you. Then each player gives his or her best card to the novice. 

You then hand over the remainder of the deck, face up, so that the five poker enthusiasts may make free choices to replenish their hands, until they each have five cards. 

The resulting poker hands are compared, and it will be seen that some players have done quite well. However, when the novice turns over the cards he or she was given, it's seen to beat the rest, having four Aces and a King. 

Just when it seems that the show is over, turn face up the discards you were given earlier. They constitute the winning hand: a straight flush.



A Little Detail

There's one little detail we didn't mention above: we're not playing with a full deck here, not at first anyway. 

Start by saying, "We'll need just enough cards for some poker hands," as you thumb off or silently count out pre-arranged cards from the top of the deck to form a pile in the other hand. The rest of the deck is set aside for now. "We should shuffle, to be fair," you continue, then address the poker novice. "Would you, please?" Hand that person the packet and have it cut a few times, then split into two roughly equal piles. Have those riffle shuffled and one more cut done. 

"You can't ask for fairer than that, can you?" you say, taking the packet back and fanning the card faces, briefly showing the audience, "Completely mixed up." 

Now deal them in a circle from left to right, one card at a time per hand, to the poker fans, until you have dealt four hands of five cards. Then look puzzled, and say, "My mistake, there are five of you, not four, sorry." Gather up the cards and deal again, this time into five hands. Comment, "It seems we don't have enough cards here, only four each. I was never very good at numbers. We'll fix that in a moment. First I want each of you to look at the cards you already have. There are probably some good ones, and some bad ones. I'll make you a deal. Get rid of your single worst card you have, just give those ones to me. Please keep all cards face down as you discard them." 

Briefly look at the five cards you are given, and comment, "Nothing too high there, oh well," and place them face down on the table in front of you. 

Address the poker novice, "Since you're new to the game, we'll give you a break. The rest of you should each donate your best card. Don't worry, you'll have a chance to replace it soon." Have those five cards set in front of the novice, also face down. 

"Since the five of you now only have two cards apiece, you may, in turn, go through the rest of the deck here, and find three cards to complement what you have so far. This isn't the way real poker works, I know, but it's fun to do once in a while. Knock yourself out!" 

This should generate a buzz of excitement. Hand the remainder of the deck, face up, to the first poker fan, on your left, and in due course to the next one, and so on, until all five of them finally have five cards. 

Recap the initial cutting and shuffling of the cards, by the novice, the discarding of low and then high cards, and the complete freedom for each person to pick three cards to add to the two received earlier. 

Ask the poker fans, "So, how did each of you fare? It's time to show all!" With any luck, there will be proud displays of full houses, flushes, straights, maybe even a four of a kind. Everyone has at least a pair. 

"Amazing, I guess it does help to have free selections for three of your five cards. Let's see how the novice did, purely by chance." The cards in front of the novice are turned over to reveal four Aces and a King. Everyone should be very impressed. 

"Incredible!" you exclaim. "You saw the cards cut, shuffled, and cut again. What are the chances that four of you still ended up with an Ace? That's what must have happened, since you each donated your best card." 

Here comes the kicker. "I'm not a poker player myself," you add casually. "It's a good thing, too. As mentioned earlier, my cards are all of low value." Turn your cards over, they turn out to be the 2, 3, 4, 5, and 6 of Clubs. "Oh dear, this is rather embarrassing. Isn't that a straight flush?" 

Your humble low-valued cards, taken together, do indeed surpass each of the other six poker hands on display. Victory is yours.



A Lot More Detail

The cards you thumb off or count out (the latter action reversing their order) at the start form a stack which you have carefully constructed in advance and planted at the top of the deck. Twenty cards are used, in four interwoven sets of five.
 
List A: 2 of Clubs, 3 of Clubs, 4 of Clubs, 5 of Clubs, 6 of Clubs. 

    


List B: 7 of Clubs, 7 of Spades, Queen of Clubs, Queen of Hearts, Queen of Spades. 

    


List C: Ace of Clubs, Ace of Hearts, Ace of Spades, Ace of Diamonds, King of Hearts. 

    


List D: 7 of Diamonds, 8 of Diamonds, 9 of Diamonds, 10 of Diamonds, Jack of Diamonds. 

    


The precise order within each list is not important. Note that the A list has the cards you want, all Clubs, with 6 being the highest value. The C list is the one destined for the poker novice, the lowest card there being a King. The other two lists consist of cards of "middling" value, between 7 and Queen; while they look tantalizing as possible poker hands, neither of them will be taken alive! 


Arrange these 20 cards cyclically as ABCDABCDABCDABCDABCD, by which we mean: start with any card from A, then any card from B, one from C, and finally one from D, then repeat in that pattern four more times. It doesn't really matter if you cut off or count out these from the deck at the outset. Also, they may be cut any number of times, for instance just before or after you hand them to the poker novice. This packet is then cut somewhere near the middle, and the two resulting piles riffled together. One more cut is given to the packet. 


When you scan the card faces, you are really looking for an appropriate place to cut, so that when you reassemble the two parts the other way, the packet is then in a highly desirable state. Simply cut it between two adjacent cards neither of which are on lists A or C. Thanks to De Morgan's law this is equivalent to the clumsier "both of which are from lists B or D (considered together)." If no such cut is possible, then no such corrective cut is necessary. 


Unsuspected by the audience, the result is five stacked quadlets (sets of four adjacent cards) with a special property, due to the Triskadequadra Principle:



Every quadlet from the top down is balanced in the following sense: it definitely contains 
one card from list A, one card from list C, and two from the other two lists, B or D.

Of course, some quadlets contain one card from each of the four lists; we call these ones perfect. The key thing is that the non-perfect quadlets contain cards from exactly three of these lists. Another consequence (not needed here) of the Triskadequadra principle is that if a quadlet has two cards from list B, then the next non-perfect quadlet will have two from list D, and this alternating pattern repeats. 

Ideally you'd like to dole these quadlets out one at a time, but that's not how poker hands are dealt, so you first deal left to right into four piles of five, then, under the pretext of having made a mistake, collect those piles in the same order and recombine. Dealing once more from left to right, this time into five piles of four, accomplishes your original goal, while seemingly following normal left-to-right dealing conventions. 


The upshot is that each of the five poker fans now has a card from the C list, which is the four Aces and one King, and, moreover, all other cards in play at this stage have lower value. More importantly, each of the poker fans also has something from the A list, and these Clubs are the lowest valued cards in hand. As a result, the A list ones will be set aside face down near you, early on, seemingly of no consequence, and then the C list cards will be donated face down to the poker novice, none of these faces being revealed until the end. 


That leaves each poker aficionado with two cards from the B and D lists. The best case scenario is that some of them have a pair of 7s or a pair of Queens. Once they are let loose with the rest of the deck, they'll have fun building what they think are strong hands, but it's all in vain. The game has been rigged so that no straight flushes are possible. You will be victorious! 


The bogus and somewhat contrived double dealing can be avoided, as John Hostler points out, by simply handing out blocks of four cards to the five poker fans after the shuffle and cut (by the novice) and your own correction cut. 


This effect can also be performed as a straight Gilbreath application. In that case, instead of merely splitting the 20-card packet before riffle shuffling, the novice deals about half of the cards to the table, thereby reversing their order. There is extra certainty about the outcome: each of the quadlets is perfect, containing one card from each of the four lists. This may allow for more fun, as there is much flexibility in how lists B and D are chosen.