
I wore my Prime Factorization Sweater to KidlitCon09, and it shows up in all my pictures, so I think it’s time for me to explain it.
This is the sweater that proves that I am a Certified Math Nut.
Okay, here’s how it works. You have to start in the bottom lefthand corner, because the mathematician in me couldn’t bear to start anywhere except where the origin would be on Cartesian coordinates. Naturally, the numbers go from left to right and from low to high.
I’ll post a picture of the front of the sweater:

Okay, look at the bottom row. It looks like there is a blank space on the left. That represents 1, because 1 is the background color, because 1 is a factor of every number.
Next is a blue square, which represents 2.
Next is a red square, for 3.
Then comes 4. 4 = 2 x 2. So 4 is represented by two blue rectangles.
Then comes 5. 5 is prime, so 5 gets a new color, yellow.
Next is 6. 6 = 2 x 3. So 6 is represented by a blue rectangle and a red rectangle.
7 gets a new color, purple.
8 comes next. 8 = 2 x 2 x 2. So 8 is in a square with three blue rectangles.
Then comes 9. 9 = 3 x 3. Two red rectangles.
Last on the bottom row is 10. 10 = 2 x 5, so we have blue and yellow.
The second row starts with 11, which is given the color pink.
12 has three factors, since 12 = 2 x 2 x 3, so two blues and a red.
Get the idea? This sweater presents a chart giving the color-coded prime factorization of every number from 2 to 100.
The patterns are wonderful and fascinating. You’ll quickly notice that the yellows and the blues line up, because 5 and 2 are factors of 10. You also might notice that all perfect squares are symmetrical. Multiples of 11 go in a lovely pink diagonal across the sweater. There are hundreds more patterns. It would be a lovely visual aid for teaching number theory. Fun to quietly wear to Math competitions, too!
What’s more, you can use this as a quick conversion table to convert to Octal (Base 8), because on the back I did the same thing with rows of 8:

The fun thing about rows of 8 is that the patterns are all different! Notice how the last column is full of blue squares because every number there is a multiple of 8 and has at least three factors of 2. And now 9 (two reds) acts like 11, going diagonally up the sweater, as does 7 (purple) in the opposite direction.
On the sleeves, I did rows of 2 and rows of 3. The rows of 3 is the only one where the blues do not line up, because 2 and 3 are relatively prime.
Isn’t it just the coolest thing in the world?!!!
Okay, I warned you: This is the item that proves I am a Certified Math Nut. I can get hugely excited and animated talking about this sweater.
I have already done a library program called “Puzzles and Patterns” showing kids how they can make simple codes using the ideas from this sweater. There’s definitely a children’s book in there, but I haven’t gotten around to writing it yet. I definitely plan to some day!
One of the cool things about this sweater is that it works in any language and on any planet!!! You see, even if an alien race had only four fingers on each hand, they could look at the back of the sweater and all their numbers would work. For that matter, a number system with a base of 7 or some other strange base would still work, even though it might not be in neat rows for that base. The chart is entirely independent of the symbols used to represent a number, and based only on color.
So we had a family joke that if an alien ever came to our door, we’d run and get the sweater to prove that we are intelligent life.
I only hope the aliens are not color blind!
Of course I also like to tell the story that when I was knitting this sweater, I brought it along to visit my family and friends one Christmas. Most of my family are Math Geeks, too, so they were impressed. But one friend had a young son who listened to my explanation and responded, “That’s just weird!”
What can I say? He does have a point. Call me weird, but I still think it’s one of the coolest things in the world!
[...] Review of Rampant, by Diana Peterfreund Main My Prime Factorization Sweater [...]
i love it!! showed my students as we’re working on prime factorization just now and happened upon your sweater. you’re an inspiration!
m
[...] work’. Next to Faraday is Mary Sommerville, if anyone in the history of science ever screamed ‘KNITTER’ it was she.. she was a good friend of both Lovelace and Babbage and there’s plenty I could [...]
This is wonderful! I love it~! Do you have a chart for this? It would be great fun to knit – and wear, to see if any of my professors notice.
<3
Love the sweater! Math geek clothes always make me smile.
I just wrote a blog post about prime factorization and came upon this during the research. Thank you for putting a smile on my face!
http://blog.thinkwell.com/2010/07/7th-grade-math-prime-factorization.html
Absolutely brilliant! I was impressed. My wife, however, who is longer at knitting than me, says that you (a) deserve a prize, and (b) are displaying an absolute grasp of Nth-level geekdom. (I think she’s partly intimidated by the colors; she doesn’t do intarsia/Fair Isle, which is clearly required here.)
I’m afraid I have to plead guilty to nth-level geekdom! Because even though I know it shows what a nut I am, I still LOVE this sweater. When I tell people about it, it never fails to put a sparkle in my eye. I once wore it to a Youth Services Librarian interview in the interest of “full disclosure.” I didn’t get the job, but I met someone on the panel a couple years later — and he remembered the sweater!
@Azy, I should have responded long ago. I used a basic sweater pattern that had enough stitches, then worked out the colors on graph paper. I needed to be able to accommodate 6 factors (for 64 and 96), and knit stitches are wider than they are tall. So I made each square 7 stitches across and 8 stitches tall. Where there are white lines inside, they are usually one stitch, sometimes 2.
Alas, I’ve never had anyone notice the pattern without prompting. They seem to assume it’s flags. Some day, if I’m working at a library, I’ll post a sign and offer a prize to whoever figures it out first. I did get a 4th grade class to figure out the pattern, but I stepped them along.