Tag Archives: video

Sandpiles, Prime Pages, and Six Dimensions of Color

Welcome to this week’s Math Munch!

Four million grains of sand dropped onto an infinite grid. The colors represent how many grains are at each vertex. From this gallery.

We got our first snowfall of the year this past week, but my most recent mathematical find makes me think of summertime instead. The picture to the right is of a sandpile—or, more formally, an Abelian sandpile model.

If you pour a bucket of sand into a pile a little at a time, it’ll build up for a while. But if it gets too tall, an avalanche will happen and some of the sand will tumble away from the peak. You can check out an applet that models this kind of sand action here.

A mathematical sandpile formalizes this idea. First, take any graph—a small one, a medium sided one, or an infinite grid. Grains of sand will go at each vertex, but we’ll set a maximum amount that each one can contain—the number of edges that connect to the vertex. (Notice that this is four for every vertex of an infinite square grid). If too many grains end up on a given vertex, then one grain avalanches down each edge to a neighboring vertex. This might be the end of the story, but it’s possible that a chain reaction will occur—that the extra grain at a neighboring vertex might cause it to spill over, and so on. For many more technical details, you might check out this article from the AMS Notices.

This video walks through the steps of a sandpile slowly, and it shows with numbers how many grains are in each spot.

A sandpile I made with Sergei’s applet

You can make some really cool images—both still and animated—by tinkering around with sandpiles. Sergei Maslov, who works at Brookhaven National Laboratory in New York, has a great applet on his website where you can make sandpiles of your own.

David Perkinson, a professor at Reed College, maintains a whole website about sandpiles. It contains a gallery of sandpile images and a more advanced sandpile applet.

Hexplode is a game based on sandpiles.

I have a feeling that you might also enjoy playing the sandpile-inspired game Hexplode!

Next up: we’ve shared links about Fibonnaci numbers and prime numbers before—they’re some of our favorite numbers! Here’s an amazing fact that I just found out this week. Some Fibonnaci numbers are prime—like 3, 5, and 13—but no one knows if there are infinitely many Fibonnaci primes, or only finitely many.

A great place to find out more amazing and fun facts like this one is at The Prime Pages. It has a list of the largest known prime numbers, as well as information about the continuing search for bigger ones—and how you can help out! It also has a short list of open questions about prime numbers, including Goldbach’s conjecture.

Be sure to peek at the “Prime Curios” page. It contains intriguing facts about prime numbers both large and small. For instance, did you know that 773 is both the only three-digit iccanobiF prime and the largest three-digit unholey prime? I sure didn’t.

Last but not least, I ran across this article about how a software company has come up with a new solution for mixing colors on a computer screen by using six dimensions rather than the usual three.

Dimensions of colors, you ask?

The arithmetic of colors!

Well, there are actually several ways that computers store colors. Each of them encodes colors using three numbers. For instance, one method builds colors by giving one number each to the primary colors yellow, red, and blue. Another systems assigns a number to each of hue, saturation, and brightness. More on these systems here. In any of these systems, you can picture a given color as sitting within a three-dimensional color cube, based on its three numbers.

A color cube, based on the RGB (red, green, blue) system.

If you numerically average two colors in these systems, you don’t actually end up with the color that you’d get by mixing paint of those two colors. Now, both scientists and artists think about combining colors in two ways—combining colored lights and combining colored pigments, or paints. These are called additive and subtractive color models—more on that here. The breakthrough that the folks at the software company FiftyThree made was to assign six numbers to each color—that is, to use both additive and subtractive ideas at the same time. The six numbers assigned to a given number can be thought of as plotting a point in a six-dimensional space—or inside of a hyper-hyper-hypercube.

I think it’s amazing that using math in this creative way helps to solve a nagging artistic problem. To get a feel for why mixing colors using the usual three-coordinate system is such a problem, you might try your hand at this color matching game. For even more info about the math of color, there’s some interesting stuff on this webpage.

Bon appetit!

Factorization Dance, Vanishing, and Storm Infographics

Welcome to this week’s Math Munch!

Think fast!  How many dots are there in this picture?

This beautiful picture comes to you from Brent Yorgey and Stephen Von Worley.  If you counted the dots, you probably didn’t count them one at a time.  (And, if you did, can you think of another way to count them?)  If you counted them like I did, you noticed that the dots are arranged in rings of five.  Then maybe you noticed that the rings of five are themselves arranged in rings of five.  And then, finally, you may have noticed that those rings are also arranged in rings of five!  How many dots is that?  5x5x5 = 125!

In this blog post, Brent describes how he wrote the computer program that creates these pictures.  The program factors numbers into primes.  Then, starting with the smallest prime factor, the program arranges dots into regular polygons of the appropriate size with dots (or polygons of dots) at the vertices of the polygon.

Here’s how that works for 90.  90’s prime factorization is 2x3x3x5:

As Brent writes in his post, this counting gets much harder to do with numbers that have large prime factors.  For example, here is 183:

From this picture, I can tell that 183 has 3 as a prime factor.  But how many times does 3 go into 183?  It isn’t immediately clear.

When Stephen saw Brent’s creation, he decided the diagrams would be even more awesome if they danced.  And so he created what he calls the Factor Conga.  If you only click on one link today, click that one.  The Factor Conga is beautiful and totally mesmerizing.

For more factor diagrams, check out this post from the Aperiodical.  There’s a link to the factor diagram by Jason Davies that we posted about over the summer.

Next up, a few months ago we posted about the puzzles of Sam Loyd – one of which was a puzzle called Get Off the Earth.  In this puzzle, the Earth spins and – impossibly – one of the men seems to vanish.  This puzzle is a type of illusion called a geometrical vanish.  In a geometrical vanish, an image is chopped into pieces and the pieces are rearranged to make a new image that takes up the same amount of space as the original, but is missing something.

Here’s a video of another geometrical vanish:

No matter the picture, these illusions are baffling for the same reason.  Rearranging the pieces of an image shouldn’t change the image’s area.  And, yet, in these illusions, that’s exactly what seems to happen.

Check out some of these other links to geometrical vanishes.  Print out your own here.  And think about this: Are these illusions math – and, if it so, how?  I came across geometrical vanishes because a friend asked if I thought the Get Off the Earth puzzle was mathematical.  He isn’t convinced.  If you have any ideas that you think can convince him either way, leave them in the comments section!

Finally, the Math Munch team’s home, New York City, (and this writer’s other home, New Jersey) was hit by a hurricane this week.  The city and surrounding areas are still recovering from the storm.  Sandy left millions of people without power and many without homes.  One way people have tried to communicate the magnitude of what happened is to make infographics of the data.  Making a good infographic requires a blend of mathematics, art, and persuasion.  Here some of the most interesting infographics about the storm that I’ve found.  Check out how they use size, placement, and color to communicate information and make comparisons.

This infographic from the New York Times shows the number of power outages in the northeast and their locations in different states. The size of the circle indicates the number of people without power. Why would the makers of this infographic choose circles? Why do you think they chose to place them on a map? What do you think of the overlapping?

This is part of an infographic from the Huffington Post that compares hurricanes Sandy and Katrina. Click on the image to see the rest of the infographic. What conclusions can you draw about the hurricanes from the information?

This is a wind map of the country captured at 10:30 in the morning on October 30th, the day hurricane Sandy hit. The infographic was made by scientist-artists Fernanda Viegas and Martin Wattenberg. It shows how wind is flowing around the United States in real-time. Check out their site (click on this image) to see what the wind is doing right now in your part of the country!

To those in places affected by Hurricane Sandy, be safe.  To all our readers, bon appetit!

Pixel Art, Gothic Circle Patterns, and First Past the Post

Welcome to this week’s Math Munch!

Guess what? Today is Math Munch’s one-year anniversary!

We’re so grateful to everyone who has made this year so much fun: our students and readers; everyone who has spread the word about Math Munch; and especially all the people who do and make the cool mathy things that we so love to find and share.

Speaking of which…

Mathematicians have studied the popular puzzle called Sudoku in numerous ways. They’ve counted the number of solutions. They’ve investigated how few given numbers are required to force a unique solution. But Tiffany C. Inglis came at this puzzle craze from another angle—as a way to encode pixel art!

Tiffany studies computer graphics at the University of Waterloo in Ontario, Canada. She’s a PhD candidate at the Computer Graphics Lab (which seems like an amazing place to work and study—would you check out these mazes!?)

Tiffany C. Inglis, hoisting a buckyball

Tiffany tried to find shading schemes for Sudoku puzzles so that pictures would emerge—like the classic mushroom pictured above. Sudoku puzzles are a pretty restrictive structure, but Tiffany and her collaborators had some success—and even more when they loosened the rules a bit. You can read about (and see!) some of their results on this rad poster and in their paper.

Thinking about making pictures with Sudoku puzzles got Tiffany interested in pixel art more generally. “I did some research on how to create pixel art from generic images such as photographs and realized that it’s an unexplored area of research, which was very exciting!” Soon she started building computer programs—algorithms—to automatically convert smooth line art into blockier pixel art without losing the flavor of the original. You can read more about Tiffany’s pixelization research on this page of her website. You should definitely check out another incredible poster Tiffany made about this research!

To read more of my interview with Tiffany, you can click here.

Cartoon Tiffany explains what makes a good pixelization. Check out the full comic!

I met Tiffany this past summer at Bridges, where she both exhibited her artwork and gave an awesome talk about circle patterns in Gothic architecture. You may be familiar with Apollonian gaskets; Gothic circle patterns have a similar circle-packing feel to them, but they have some different restrictions. Circles don’t just squeeze in one at a time, but come in rings. It’s especially nice when all of the tangencies—the places where the circles touch—coincide throughout the different layers of the pattern. Tiffany worked on the problem of when this happens and discovered that only a small family has this property. Even so, the less regular circle patterns can still produce pleasing effects. She wrote about this and more in her paper on Gothic circle patterns.

I’m really inspired by how Tiffany finds new ideas in so many place, and how she pursues them and then shares them in amazing ways. I hope you’re inspired, too!

A rose window at the Milan Cathedral, with circle designs highlighted.

A mathematical model similar to the window, which Tiffany created.

An original design by Tiffany. All of these images are from her paper.

Here’s another of Tiffany’s designs. Now try making one of your own!

Using the Mathematica code that Tiffany wrote to build her diagrams, I made an applet where you can try making some circle designs of your own. Check it out! If you make one you really like—and maybe color it in—we’d love to see it! You can send it to us at MathMunchTeam@gmail.com.

(You’ll may have to download a plug-in to view the applet; it’s the same plug-in required to use the Wolfram Demonstrations Project.)

Finally, with Election Day right around the corner, how about a dose of the mathematics of voting?

I’m a fan of this series of videos about voting theory by C.G.P. Grey. Who could resist the charm of learning about the alternative vote from a wallaby, or about gerrymandering from a weasel? Below you’ll find the first video in his series, entitled “The Problems with First Past the Post Voting Explained.” Majority rule isn’t as simple of a concept as you might think, and math can help to explain why. As can jungle animals, of course.

Thanks again for being a part of our Math Munch fun this past year. Here’s to a great second course! Bon appetit!


PS I linked to a bunch of papers in this post. After all, that’s the traditional first anniversary gift!