Math Reveals How Many Shuffles Randomizes A Deck

Math — and some clever simulations — have revealed how many shuffles are required to randomize a deck of 52 cards, but there’s a bit more to it than that. There are different shuffling methods, and dealing methods can matter, too. [Jason Fulman] and [Persi Diaconis] are behind the research that will be detailed in an upcoming book, The Mathematics of Shuffling Cards, but the main points are easy to cover.

A riffle shuffle (pictured above) requires seven shuffles to randomize a 52-card deck. Laying cards face-down on a table and mixing them by pushing them around (a technique researchers dubbed “smooshing”) requires 30 to 60 seconds to randomize the cards. An overhand shuffle — taking sections from a deck and moving them to new positions — is a staggeringly poor method of randomizing, requiring some 10,000-11,000 iterations.

The method of dealing cards can matter as well. Back-and-forth dealing (alternating directions while dealing, such as pattern A, B, C, C, B, A) yields improved randomness compared to the more common cyclic dealing (dealing to positions in a circular repeating pattern A, B, C, A, B, C). It’s interesting to see different dealing methods shown to have an effect on randomness.

This brings up a good point: there is not really any such a thing as “more” random. A deck of cards is either randomized, or it isn’t. If even two cards have remained in the same relative positions (next to one another, for example) after shuffling, then a deck has not yet been randomized. Similarly, if seven proper riffle shuffles are sufficient to randomize a 52-card deck, there is not really any point in doing eight or nine (or more) because there isn’t any such thing as “more” random.

You can watch these different methods demonstrated in the video embedded just under the page break. Now we know there’s no need for a complicated Rube Goldberg-style shuffling solution just to randomize a deck of cards (well, no mathematical reason for one, anyway.)

Continue reading “Math Reveals How Many Shuffles Randomizes A Deck”

Native Alaskan Language Reshapes Mathematics

The languages we speak influence the way that we see the world, in ways most of us may never recognize. For example, researchers report seeing higher savings rates among people whose native language has limited capacity for a future tense, and one Aboriginal Australian language requires precise knowledge of cardinal directions in order to speak at all. And one Alaskan Inuit language called Iñupiaq is using its inherent visual nature to reshape the way children learn and use mathematics, among other things.

Arabic numerals are widespread and near universal in the modern world, but except perhaps for the number “1”, are simply symbols representing ideas. They require users to understand these quantities before being able to engage with the underlying mathematical structure of this base-10 system. But not only are there other bases, but other ways of writing numbers. In the case of the Iñupiaq language, which is a base-20 system, the characters for the numbers are expressed in a way in which information about the numbers themselves can be extracted from their visual representation.

This leads to some surprising consequences, largely that certain operations like addition and subtraction and even long division can be strikingly easy to do since the visual nature of the characters makes it obvious what each answer should be. Often the operations can be seen as being done to the characters themselves, instead of in the Arabic system where the idea of each number must be known before it can be manipulated in this way.

This project was originally started as a way to make sure that the Iñupiaq language and culture wasn’t completely lost after centuries of efforts to eradicate it and other native North American cultures. But now it may eventually get its own set of Unicode characters, meaning that it could easily be printed in textbooks and used in computer programming, opening up a lot of doors not only for native speakers of the language but for those looking to utilize its unique characteristics to help students understand mathematics rather than just learn it.

Bode Plot Un-Lecture

[Rolinychupetin] insists that his recent video is not a lecture but actually a “recitation” about Bode plots. That may be, but it is still worth a watch if you want to learn more about the topic. You can see the video below.

If you haven’t run into Bode plots before, they are simple plots of magnitude or phase vs. frequency, usually plotted on a log scale. Named after Bell Lab’s [Hendrik Wade Bode], they are useful for understanding filters or anything with a frequency response.

Continue reading “Bode Plot Un-Lecture”

Organic Fibonacci Clock Is All About The Spiral

Whether you’re a fan of compelling Tool songs, or merely appreciate mathematical beauty, you might be into the spirals defined by the Fibonacci sequence. [RuddK5] used the Fibonacci curve as the inspiration for this fun clock build.

The intention of the clock is not to display the exact time, but to give a more organic feel of time, via a rough representation of minutes and hours. A strip of addressable LEDs is charged with display duty. The description is vague, but it appears that the 24 LEDs light up over time to show the amount of the day that has already passed by. The LEDs are wound up in the shape of a Fibonacci spiral with the help of a 3D printed case, and is run via a Wemos D1 microcontroller board.

It’s a fun build, and one that we can imagine would scale beautifully into a larger wall-hanging clock design if so desired. It at once could display the time, without making it immediately obvious, gradually shifting the lighting display as the day goes on.

We’ve seen other clocks rely on the mathematics of Fibonacci before, too. If you’ve cooked up your own fun clock build, don’t hesitate to let us know!

a kinetic bar framework mounted on a wooden base made of 3d printed bars of alternative black and grey color, each joined with m3 bolts and nuts

Kinetic Cyclic Scissors

[Henry Segerman] and [Kyle VanDeventer] merge math and mechanics to create a kinetic cyclic scissors sculpture out of 3D printed bars adjoined together with M3 bolts and nuts.

a kinetic bar framework with 3d printed bars of alternative black and grey color, each joined with m3 bolts and nuts being held by a person at two points with a quadrilateral tiling overlay

The kinetic sculpture can be thought of as a part of an infinite tiling of self similar quadrilaterals in the plane. The tiling of the plane by these self similar quadrilaterals can be realized as a framework by joining the diagonal points of each quadrilateral with bars. The basic question [Henry] and [Kyle] wanted to answer was under what conditions can the realized bar framework of a subsection of the tiling be made to move. Surprisingly, when the quadrilateral is a parallelogram, like in a scissor lift, or “cyclic”, when the endpoints lie on a circle, the bar framework can move. Tweaking the ratios of the middle lengths in a cyclic configuration leads to different types of rotational symmetry that can be achieved as the structure folds in on itself.

[Henry] and [Kyle] go into more detail in their Bridges Conference paper, with derivations and further discussions about the symmetry induced by adjusting the constraints. The details are light on the actual kinetic sculpture featured in the video but the bar framework was chosen to have a mirror type of symmetry with a motor attached to one of the central, lower bars to drive the movement of the sculpture.

The bar framework is available for download for anyone wanting to 3D print or laser cut their own. Bar frameworks are useful ideas and we’ve seen them used in art sculptures to strandbeests, so it’s great to see further explorations in this space.

Video after the break!

Continue reading “Kinetic Cyclic Scissors”

Calculus Made Easy In The Car

If you had the traditional engineering education, you’ve made your peace with calculus. If you haven’t, you may have learned it on your own, but for many people, calculus has a reputation for being super difficult. While some of the details can be very tricky, the core concepts are actually simple and [Mathologer] has a very simple explanation along with some good graphics that can help you get started on calculus mastery if you’ve been putting it off. Using a car on the highway as the prototypical example, he covers quite a bit of ground in the 30 minute video that you can see below.

Of course, this isn’t a unique idea that calculus is actually simple. The video credits the great book “Calculus Made Easy” that we’ve talked about before. That 100-year-old (and then some) book has a similar approach to the topic.

Continue reading “Calculus Made Easy In The Car”

Book Teaches Gaming Math

If we knew how much math goes into writing a video game, we might have paid more attention in math class. If you need a refresher, [Fletcher Dunn] and [Ian Parbery] have their book “3D Math Primer for Graphics and Game Development” available free online. The book was originally a paper book from 2011 with a 2002 first edition but those are out of print now. However, math is math, so regardless of the age of the book, it is worth a look. For now, the online version is a bunch of web pages, but we hear a PDF or E-reader version is forthcoming.

There’s quite a bit of discussion about vectors, matrices, linear transformations, and 3D graphics. The last part of the book covers calculus, kinematics, and parametric curves. Some of these topics will be of interest even if you don’t care about graphics but do want to learn some math with practical examples.

Continue reading “Book Teaches Gaming Math”