Tag Archives: programming

SET, Ptolemy, and Malin Christersson

Welcome to this week’s Math Munch!

To set up the punchline: if you haven’t played the card game SET before, do yourself a favor and go try it out now!

(Or if you prefer, here’s a video tutorial.)

ThereAreNoSetsHere

Are there any sets to be found here?

(And even if you have played before, go ahead and indulge yourself with a round. You deserve a SET break. 🙂 )

Now, we’ve shared about SET before, but recently there has been some very big SET-related news. Although things have been quieter around Georgia Tech since summer has started, there has been a buzz both here and around the internet about a big breakthrough by Vsevolod Lev, PĂ©ter Pál Pach, and Georgia Tech professor Ernie Croot. Together they have discovered a new approach to estimate how big a SET-less collection of SET cards can be.

In SET there are a total of 81 cards, since each card expresses one combination of four different characteristics (shape, color, filling, number) for which there are three possibilities each. That makes 3^4=81 combinations of characteristics. Of these 81 cards, what do you think is the most cards we could lay out without a SET appearing? This is not an easy problem, but it turns out the answer is 20. An even harder problem, though, is asking the same question but for bigger decks where there are five or ten or seventy characteristics—and so 3^5 or 3^10 or 3^70 cards. Finding the exact answer to these larger problems would be very, very hard, and so it would be nice if we could at least estimate how big of a collection of SET-less cards we could make in each case. This is called the cap set problem, and Vsevolod, Péter, and Ernie found a much, much better way to estimate the answers than what was previously known.

To find out more on the background of the cap set problem, check out this “low threshold, high ceiling” article by Michigan grad student Charlotte Chan. And I definitely encourage you to check out this article by Erica Klarreich in Quanta Magazine for more details about the breakthrough and for reactions from the mathematical community. Here’s a choice quote:

Now, however, mathematicians have solved the cap set problem using an entirely different method — and in only a few pages of fairly elementary mathematics. “One of the delightful aspects of the whole story to me is that I could just sit down, and in half an hour I had understood the proof,” Gowers said.

(For further wonderful math articles, you’ll want to visit Erica’s website.)

 Vsevolod  Peter  Ernie
 Charlotte  Erica  Marsha

These are photos of Vsevolod, Péter, Ernie, Charlotte, Erica, and the creator of SET, geneticist Marsha Jean Falco.

Ready for more? Earlier this week, I ran across this animation:

tumblr_o0k7mkhNSN1uk13a5o1_500

It shows two ways of modeling the motions of the sun and the planets in the sky. On the left is a heliocentric model, which means the sun is at the center. On the right is a geocentric model, which means the earth is at the center.

suntriangle

Around 250 BC, Aristarchus calculated the size of the sun, and decided it was too big to revolve around the earth!

Now, I’m sure you’ve heard that the sun is at the center of the solar system, and that the earth and the planets revolve around the sun. (After all, we call it a “solar system”, don’t we?) But it took a long time for human beings to decide that this is so.

I have to confess: I have a soft spot for the geocentric model. I ran across the animation in a Facebook group of some graduates of St. John’s College, where I studied as an undergrad. We spent a semester or so reading Ptolemy’s Almagest—literally, the “Great Work”—on the geocentric model of the heavens. It is an incredible work of mathematics and of natural science. Ptolemy calculated the most accurate table of chords—a variation on a table of the sine function—that existed in his time and also proved intricate facts about circular motion. For example, here’s a video that shows that the eccentric and epicyclic models of solar motion are equivalent. What’s really remarkable is that not only does Ptolemy’s system account for the motions of the heavenly bodies, it actually gave better predictions of the locations of the planets than Copernicus’s heliocentric system when the latter first debuted in the 1500s. Not bad for something that was “wrong”!

Here are Ptolemy and Copernicus’s ways of explaining how Mars appears to move in the sky:

ptolemy Copernicus_Mars

Maybe you would like to learn more about the history of models of the cosmos? Or maybe you would like tinker with a world-system of your own? You might notice that the circles-on-circles of Ptolemy’s model are just like a spirograph or a roulette. I wonder what would happen if we made the orbit circles in much different proportions?

Malin

Malin, tiled hyperbolically.

Now, I was very glad to take this stroll down memory lane back to my college studies, but little did I know that I was taking a second stroll as well: the person who created this great animation, I had run across several other pieces of her work before! Her name is Malin Christersson and she’s a PhD student in math education in Sweden. She is also a computer scientist who previously taught high school and also teaches many people about creating math in GeoGebra. You can try out her many GeoGebra applets here. Malin also has a Tumblr where she posts gifs from the applets she creates.

About a year ago I happened across an applet that lets you create art in the style of artist (and superellipse creator) Piet Mondrian. But it also inverts your art—reflects it across a circle—so that you can view your own work from a totally different perspective. Then just a few months later I delighted in finding another applet where you can tile the hyperbolic plane with an image of your choice. (I used one tiling I produced as my Twitter photo for a while.)

Mondrian

Mondrainverted.

tiling (4)

Me, tiled hyperbolically.

And now come to find out these were both made by Malin, just like the astronomy animation above! And Malin doesn’t stop there, no, no. You should see her fractal applets depicting Julia sets. And her Rolling Hypocycloids and Epicycloids are can’t-miss. (Echoes of Ptolemy there, yes?!)

And please don’t miss out on Malin’s porfolio of applets made in the programming language Processing.

It’s a good feeling to finally put the pieces together and to have a new mathematician, artist, and teacher who inspires me!

I hope you’ll find some inspiration, too. Bon appetit!

Braids, Hacktastic, and Rock Climbing

Welcome to this week’s Math Munch!

lym_angel

Math hair braiding art by So Yoon Lym, shown at the 2014 Joint Mathematics Meetings.

First up, a little about one of my favorite things to do (and part of what got me into math in the first place!): hair braiding. If you’ve ever done a complicated braid in someone’s hair before, you might have had an inkling that something mathematical was going on. Well, you’re right! Mathematicians Gloria Ford Gilmer and Ron Eglash have spent much of their careers studying and teaching about the math that goes into hair braiding.

SYL_Diosnedys_new1

See the tessellation?

In their research, Gloria and Ron investigate how math can improve hair braiding, how hair braiding can improve math, and how the overlap between the two can teach us about how different cultures use and understand math. As Gloria shows in her article on math and braids, tessellations are very important to braided designs.

braids

And so are fractals! Ron studies how fractals are used in African and African American designs, including in the layouts of towns, tile patterns, and cornrow braids. (Watch his TED Talk to learn more!) On his beautiful website dedicated to the math of cornrows, Ron shows how braiders use tools essential to making fractals to design their braids.

programmed braid

Just like when making a fractal, braid designers repeat the same shape while shifting, rotating, reflecting, and shrinking it. You can design your own mathematical cornrow braid using Ron’s braid programming app! If you’ve ever used Scratch, this app will look very familiar. I made the spiral braid on the right using the app. Next challenge: try to make your braid on a real head of hair…

trig bracelets Laura Taalman

Next up, a little about something I wish I could do: make awesome 3D-printed art! Here’s a blog that might help me (and you) get started. Mathematician Laura Taalman (who calls herself @mathgrrl on Twitter) writes a blog called Hacktastic all about making math designs, using a 3D-printer and many other tools. She has designs for all kinds of awesome things, from Menger sponges to trigonometric bracelets. One of the best things about Laura’s site is that she tells you the story behind how she came up with her designs, along with all the instructions and code you’ll ever need to make her designs yourself.

Rock climbing Skip

Skip Garibaldi, climbing

Finally, a little about something I’m trying to learn to do better: rock climbing! Mathematician Skip Garibaldi loves both math and rock climbing– so he decided to combine his interests for the better of each. In this video, Skip discusses some of the mathematical ideas important to rock climbing– including some essential to a type of climbing that I find most intimidating, lead climbing. Check it out!

Bon appetit!

Squaring, Water Calculator, and Snap the Turtle

Welcome to this week’s Math Munch!

I’ve been really into squares lately. Maybe it’s because I recently ran across a new puzzle involving squares– something called Mrs. Perkin’s quilt.

Mrs. Perkin's quilt 1

69 by 69 Mrs. Perkin’s quilt.

The original version of the puzzle was published way back in 1907, and it went like this: “For Christmas, Mrs. Potipher Perkins received a very pretty patchwork quilt constructed of 169 square pieces of silk material. The puzzle is to find the smallest number of square portions of which the quilt could be composed and show how they might be joined together. Or, to put it the reverse way, divide the quilt into as few square portions as possible by merely cutting the stitches.”

Mrs. Perkin's quilt 18

18 by 18 Mrs. Perkin’s quilt

Said in another way, if you have a 13 by 13 square, how can you divide it up into the smallest number of smaller squares? Don’t worry, you get to solve it yourself– I’m not including a picture of the solution to that version of the puzzle because there are so many beautiful pictures of solutions to the puzzle when you start with larger and smaller squares. Some are definitely more interesting than others. If you want to start simple, try the 4 by 4 version. I particularly like the look of the solution to the 18 by 18 version.

Mrs. Perkin's quilt 152

152 by 152 Mrs. Perkin’s quilt

Maybe you’re wondering where I got all these great pictures of Mrs. Perkin’s quits. And– wait a second– is that the solution to the 152 by 152 version? It sure is– and I got it from one of my favorite math websites, the Wolfram Demonstrations Project. The site is full of awesome visualizations of all kinds of things, from math problems to scans of the human brain. The Mrs. Perkin’s quilts demonstration solves the puzzle for up to a 1,098 by 1,098 square!

Next up, we here at Math Munch are big fans of unusual calculators. Marble calculators, domino calculators… what will we turn up next? Well, here for your strange calculator enjoyment is a water calculator! Check out this video to see how it works:

I might not want to rely on this calculator to do my homework, but it certainly is interesting!

Snap the TurtleFinally, meet Snap the Turtle! This cute little guy is here to teach you how to make beautiful math art stars using computer programming.

On the website Tynker, Snap can show you how to design a program to make intricate line drawings– and learn something about computer programming at the same time. Tynker’s goal is to teach kids to be programming “literate.” Combine computer programming with a little math and art (and a turtle)– what could be better?

I hope something grabbed your interest this week! Bon appetit!