Wednesday, March 1, 2017

3D Design in Mathematica: Creating a Name Ring

In this post I will be going through the techniques I use to create a name ring in Mathematica. Here is a ring I designed that is an ambigram of the name Sara.

Click below to interact with a 3D rendering of the ring.

Since I have never met a meta I didn't like, let's walk through the design of a new ring that says Ring.

Step One: Create a sketch

Create a drawing of the word with an eye toward its style and making sure that the letters have a natural way that they can be connected. After doing a dozen sketches, I settled on this draft to guide me:

I made sure that the sketch has two disjoint paths from the beginning of the word to the end of the word so that the ring is stronger when it is printed.

Step Two: Transfer into Mathematica

Our next goal is to convert the drawing into a two-dimensional Graphics object in Mathematica. The relevant Mathematica commands for this are BSplineFunction, BezierFunction, and Interpolation, which take as input a set of points and give a smooth function that follows those points as output. I've created BezierFunctions manually a couple of times which was a painstaking process because the curve does not pass through the chosen points, so this time I figured that I would try to streamline the choosing and adjusting of points. When researching how to do this, I found a thread about extruding along a path on StackExchange, which led me to a comment by J.M. and a link in Mathematica's Documentation Center about how to create a BSplineCurve that touches the control points. I wrote a function to do this automatically, which I called SplineIt.

SplineIt[pts_] := Module[
  {n = Length[pts], dist, param, knots, m, ctrlpts},
  dist = Accumulate[Table[
   EuclideanDistance[pts[[i]], pts[[i+1]]], {i, n-1}]];
  param = N[Prepend[dist/Last[dist], 0]];
  knots = Flatten[{{0, 0, 0, 0},
      Table[i/(n-3), {i, 1, n-4}], {1, 1, 1, 1}}];
  m = Table[
   BSplineBasis[{3, knots}, j-1, param[[i]]],
   {i, n}, {j, n}];
  ctrlpts = LinearSolve[m, pts]
]
Here I have applied SplineIt to the sequence of points $\{(1, 0), (0, 1), (-1, 0), (0, -1)\}$
Then I wanted to move the control points (or add in new ones) and watch the shape of the curves change. Once again the Documentation Center has a relevant example about an application of DynamicModule, which I coupled with another StackExchange answer on inserting points in a DynamicModule to give the following code that allows us to move points and have a BSplineCurve passing through the movable points. This allowed me to create a streamlined process where I successively created piece after piece of the name plate.
allpts = {};
pts = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}, {1, 0}};
DynamicModule[{i = Length[pts], last},
  last[prev_, curr_] := If[Length[prev] != Length[curr], Length[curr], FirstPosition[SameQ @@@ Thread[{prev, curr}], False][[1]]];
  Column[{Style["Don't forget to save the points", Red, Bold],
   LocatorPane[
    Dynamic[pts, (i = last[pts, #]; pts = #) &],
    EventHandler[
     Dynamic[Show[
      {Graphics[{
       {Thick, Red, Map[BSplineCurve[SplineIt[#]] &, allpts]},
       {Thick, Black, BSplineCurve[SplineIt[pts]]}
      }, ImageSize -> 700,
      GridLines -> {Table[i, {i, -1.3, 1.3, .05}], Table[i, {i, -1.3, 1.3, .05}]},
      PlotRange -> {{-2, 2}, {-2, 2}}]},
     Frame -> True]],
   {{"MouseDown", 2} :> (pts = Insert[pts, MousePosition["GraphicsAbsolute"], i + 1])}], LocatorAutoCreate -> True]}, Alignment -> Center]]
The variable pts keeps track of the current set of points that I am moving and sculpting. Once I get the points in the right place, I mark down what the current set of points pts is and append it to the list allpts. Here is what it looks like part of the way through when I am editing the tail of the G (which is also the bottom of the I):
Pro Tip: I always tell my students to never break anything that works! If you get one piece of your code working, copy the whole working block of code into a new cell and modify the new cell.
 
By the end of the process, my list of allpts includes all the pieces of the name plate, including the three parts of the R, the tail of the G, the circle of the I, and the two parts of the N. This process involves much trial and error to get the points just right.
r1pts = {{-1.592, 0.86}, {-1.328, 1.05}, {-0.786, 0.98}, {-0.64, 0.67}, {-0.868, 0.225}, {-1.212, 0.15}, {-1.56, 0.215}};
r2pts = {{-1.586, 0.87}, {-1.55, 0.62}, {-1.542, -0.12}, {-1.594, -0.505}, {-1.736, -0.745}};
r3pts = {{-1.534, 0.19}, {-1.238, 0.035}, {-1.01, -0.38}, {-0.61, -0.905}, {-0.092, -0.96}, {0.344, \ -0.835}, {0.88, -0.62}, {1.314, -0.335}, {1.518, 0.235}, {1.306, 0.75}, {0.676, 0.75}, {0.612, 0.34}, {0.984, 0.13}, {1.282, 0.335}};
gpts = {{1.298, 0.755}, {1.304, 0.08}, {1.208, -0.945}, {0.956, -1.24}, {-0.172, -1.1}, {-0.412, \ -0.165}, {-0.412, 0.33}, {-0.818, 0.26}};
ipts = {{-0.326, 0.82}, {-0.6, 0.92}, {-0.63, 0.735}, {-0.466, 0.67}, {-0.322, 0.81}};
n1pts = {{-0.302, 0.805}, {-0.092, 0.83}, {0.018, -0.045}, {-0.096, -0.79}, {-0.278, -0.97}};
n2pts = {{0.064, 0.44}, {0.47, 0.585}, {0.61, -0.08}, {0.652, -0.51}, {0.824, -0.655}};
allpts = {r1pts, r2pts, r3pts, gpts, ipts, n1pts, n2pts};
With these control points, we get the final two-dimensional graphic. Not bad!

Step Three: Convert into three dimensions

Now we need to take the two-dimensional Graphics object and make it into a three-dimensional Graphics3D object. We get to use some elementary trigonometry to do this! The key idea is that we can wrap a two-dimensional picture around a cylinder of radius 1 by taking a point at $(x,y)$ on the plane to a point $(\sin(x),y,\cos(x))$ on the cylinder.
 
First I use a technique from a discussion on StackExchange to define the $x$- and $y$-components of the BSplineCurve commands we defined above.

xComponent[t_?NumericQ, f_] :=
   Module[{val}, val = f[t]; First@val];
yComponent[t_?NumericQ, f_] :=
   Module[{val}, val = f[t]; Last@val];
This means that we can recreate the two-dimensional curves shown above using ParametricPlot commands. Note to do that we have to convert our BSplineCurve commands to BSplineFunction commands, as shown here.
fcns = Map[ BSplineFunction[SplineIt[#]] &, allpts];
ParametricPlot[{
  Table[{
   xComponent[t, fcns[[i]]],
   yComponent[t, fcns[[i]]]
   }, {i, Length[fcns]}],
  {t, 0, 1}, AspectRatio -> 1, PlotRange -> {-1.8, 1.8}, Axes -> False]
To wrap these two-dimensional functions around a three-dimensional cylinder of a given radius, we first scale the $x$-components so that they fit in the range between $-\pi/2$ and $\pi/2$, and take the sine and cosine of this times the given radius as the 3D $x$- and $z$-components, respectively.
 
We combine all the curves together using the Table command and use a technique I learned from a very useful article by Henry Segerman to give these curves a specified thickness by way of the Tube command in the PlotStyle option.
xscale = 1.5;
radius = 1.1;
thickness = .08;
ParametricPlot3D[
  Table[{
   radius * Sin[xComponent[t, fcns[[i]]]/xscale * Pi/2],
   yComponent[t, fcns[[i]]],
   radius * Cos[xComponent[t, fcns[[i]]]/xscale * Pi/2]},
   {i, 1, Length[fcns]}],
  {t, 0, 1}, AspectRatio -> 1, PlotRange -> {-1.8, 1.8},
PlotStyle -> {Tube[thickness], Yellow}]

Step Four: Add finishing touches

We now have a virtual three-dimensional version of the name plate from our original sketch, and need to do some finishing work before it is ready to be printed. We will add the strap that goes behind the finger and add a sphere to every curve endpoint.
 
You can add the strap in multiple ways depending on the style you are going for. For example, the Sara ring above has two straps that cross in an X behind the finger. For this ring, I have decided to make a single strap connecting the beginning and the end of the name plate. All this requires is a part of a circle of given radius which I have placed at height $y=0.1$ to line up well. The range on $t$ is determined by trial and error.

ParametricPlot3D[
  {radius*Sin[t + Pi], 0.1, radius*Cos[t + Pi]},
  {t, -Pi/2 - .46, Pi/2 + .45},
  AspectRatio -> 1, PlotRange -> {-1.8, 1.8},
  PlotStyle -> {{Tube[thickness], Green}}]
If we were to export the file right now, we would be in for an unwelcome surprise! The exported file would not have the nice rounded ends of the curves like in the Mathematica notebook, so we need to add them manually. Compare before and after shots of the exported files:
Luckily this is not too difficult with Mathematica's Map function. We tell Mathematica to choose the first and last points of every letter piece, and then tell Mathematica to put a sphere at the transformed image of these points. I also like to give the spheres a different color in order to see them distinctly on the image.
sphereposns =
   Flatten[{ptslist[[All, 1]], ptslist[[All, -1]]}, 1];
Graphics3D[{Blue,
   Map[Sphere[{radius*Sin[#[[1]]/xscale*Pi/2], #[[2]],
      radius*Cos[#[[1]]/xscale*Pi/2]}, thickness] &,
   sphereposns]}]
Pro Tip: The PlotStyle->Tube option and Sphere command have acceptable resolution because a ring is a small object. When you want to export a larger sphere (2 in / 5 cm) or a larger curved tube, instead you would need to use a ParametricPlot3D command involving multiple variables in order to specify the exporting resolution.
 
By combining all the pieces we have programmed, our virtual ring is complete!
SplineIt[pts_] := Module[
  {n = Length[pts], dist, param, knots, m, ctrlpts},
  dist = Accumulate[Table[
   EuclideanDistance[pts[[i]], pts[[i+1]]], {i, n-1}]];
  param = N[Prepend[dist/Last[dist], 0]];
  knots = Flatten[{{0, 0, 0, 0},
      Table[i/(n-3), {i, 1, n-4}], {1, 1, 1, 1}}];
  m = Table[
   BSplineBasis[{3, knots}, j-1, param[[i]]],
   {i, n}, {j, n}];
  ctrlpts = LinearSolve[m, pts]
]
xComponent[t_?NumericQ, f_] :=
   Module[{val}, val = f[t]; First@val];
yComponent[t_?NumericQ, f_] :=
   Module[{val}, val = f[t]; Last@val];
 
r1pts = {{-1.592, 0.86}, {-1.328, 1.05}, {-0.786, 0.98}, {-0.64, 0.67}, {-0.868, 0.225}, {-1.212, 0.15}, {-1.56, 0.215}};
r2pts = {{-1.586, 0.87}, {-1.55, 0.62}, {-1.542, -0.12}, {-1.594, -0.505}, {-1.736, -0.745}};
r3pts = {{-1.534, 0.19}, {-1.238, 0.035}, {-1.01, -0.38}, {-0.61, -0.905}, {-0.092, -0.96}, {0.344, \ -0.835}, {0.88, -0.62}, {1.314, -0.335}, {1.518, 0.235}, {1.306, 0.75}, {0.676, 0.75}, {0.612, 0.34}, {0.984, 0.13}, {1.282, 0.335}};
gpts = {{1.298, 0.755}, {1.304, 0.08}, {1.208, -0.945}, {0.956, -1.24}, {-0.172, -1.1}, {-0.412, \ -0.165}, {-0.412, 0.33}, {-0.818, 0.26}};
ipts = {{-0.326, 0.82}, {-0.6, 0.92}, {-0.63, 0.735}, {-0.466, 0.67}, {-0.322, 0.81}};
n1pts = {{-0.302, 0.805}, {-0.092, 0.83}, {0.018, -0.045}, {-0.096, -0.79}, {-0.278, -0.97}};
n2pts = {{0.064, 0.44}, {0.47, 0.585}, {0.61, -0.08}, {0.652, -0.51}, {0.824, -0.655}};
allpts = {r1pts, r2pts, r3pts, gpts, ipts, n1pts, n2pts};
 
xscale = 1.5;
radius = 1.1;
thickness = .08;
stretch = .7;
ptslist = stretch * allpts;
sphereposns =
    Flatten[{ptslist[[All, 1]], ptslist[[All, -1]]}, 1]
fcns = Map[BSplineFunction[SplineIt[#]] &, ptslist];
Show[
  ParametricPlot3D[
   Table[{
     radius*Sin[xComponent[t, fcns[[i]]]/xscale*Pi/2],
     yComponent[t, fcns[[i]]],
     radius*Cos[xComponent[t, fcns[[i]]]/xscale*Pi/2]},
    {i, 1, Length[fcns]}],
   {t, 0, 1}, AspectRatio -> 1, PlotRange -> {-1.8, 1.8},
   PlotStyle -> {Tube[thickness], Yellow}],
  ParametricPlot3D[{
   {radius*Sin[t + Pi], 0.1, radius*Cos[t + Pi]}},
   {t, -Pi/2 - .46, Pi/2 + .45},
   PlotStyle -> {{Tube[thickness], Green}}],
  Graphics3D[{Blue,
   Map[Sphere[{radius*Sin[#[[1]]/xscale*Pi/2], #[[2]],
      radius*Cos[#[[1]]/xscale*Pi/2]}, thickness] &,
   sphereposns]}]
]

Step Five: Send to the printer!

Once you are happy with your virtual ring, you'll need to print it out. I send my files to Shapeways, which is also located in Queens, NY. (I've taken my students there!) I highly suggest printing a prototype first, probably in White Strong and Flexible Plastic since it is the fastest and cheapest material. This will help to make sure the ring is the right size and looks the way you want it to before printing it in higher-quality (and much more expensive) materials.
 
Mathematica 11 has built in the capability to upload your model directly to Shapeways using the command Printout3D, but I still prefer using Export in order to have a copy of the exported .STL file on my own computer. I always like to put the STL file in the same directory as the Mathematica file I am working with, so I use the following command.

Export[NotebookDirectory[] <> "MetaRing.stl", %]
Now Go to Shapeways and click the Upload button on the top right. Choose your model, and click the Inches option. After the file uploads, you'll need to resize the file so that the ring is the correct size, which you can measure on the desired finger and compare against the size Shapeways gives. Realize that your finger will need to fit on the inside of the ring, while Shapeways is displaying the size of the outside of the ring.
 
Shapeways will go through its preliminary set of checks on your ring and let you know what in materials your model is able to be printed. Even though you may be only printing your first prototype in White Strong and Flexible Plastic, make sure that your model also gets the green checkmark in the final material that you want to print it.
 
Order your ring, wait *VERY* patiently, and when it arrives check to see if it looks the way you want.
If it does not, you'll need to re-edit your Mathematica file (perhaps changing the thickness of the tubes, and/or the position of the control points) or resize the file on the Shapeways website. In either case, Shapeways will have one more say about whether the new model is printable. Go through the prototyping phase once more if the changes are drastic (or even not-so-drastic). Once you are sure that your ring is the way you want it to be, order the final version in the material you think it will look best. (The Sara ring above is printed in Premium Silver, and it is stunning!)
 
Good luck! Let me know how it turns out.

Christopher Hanusa's portfolio is available online at
Purchase a copy of this and other 3D printed artwork
at Hanusa ≀ Design on Shapeways.
I also design custom jewelry. Email (hanusadesign - AT - gmail.com) for more details.

Wednesday, October 30, 2013

Permutations corresponding to sequences of reflections.

In a recent Google+ post,  I shared an animation that sliced a tetrahedron along the six planes of symmetry and casually mentioned that the 24 colored regions corresponded to the permutations of $\{1,2,3,4\}$.

Here is a new animation that highlights the appearance of permutations of $\{1,2,3,4\}$.


We label the four vertices of the tetrahedron by the numbers $1$, $2$, $3$, and $4$.  When we do this, we see that any automorphism of the tetrahedron reorders the labels of the vertices, which is simply a permutation of $\{1,2,3,4\}$.  (I use the technical term "automorphism" to mean any way to rotate or reflect then rotate the tetrahedron and get back the same shape afterward.)

In the animation above, I highlight three special reflections:

$R_1$:  The transposition of vertices 1 and 2
$R_2$:  The transposition of vertices 2 and 3
$R_3$:  The transposition of vertices 3 and 4

They are special because every permutation of $\{1,2,3,4\}$ can be generated by a sequence of these reflections.  For example, if we apply the reflection $R_1$ first, then $R_2$ second, and then $R_3$ third, this corresponds to starting with $1234$, switching the first two positions to get $2134$, then switching the two middle positions to get $2314$, and finally switching the last two positions to get $2341$.  So we might write that the product $R_1\cdot R_2\cdot R_3$ equals the permutation $2341$.

Of course this equality depends on your convention for the order in which you multiply elements, left to right or right to left, and that is a post for another time.

Tuesday, August 27, 2013

Simultaneous core partitions

In this post I hope to share insights into an article that Brant Jones, +Drew Armstrong, and I wrote up this year and submitted for publication at the beginning of August named "Results and conjectures on simultaneous core partitions"—it is available online at http://arxiv.org/abs/1308.0572.  As I mentioned earlier, I aim to write informally about these topics but what I write may still be hard to follow.  Be assured that your questions are welcomed in the comments.  And DO let me know what you think of this writeup!  What is the best part?  What can be improved?

I would suggest trying to read at least the introduction of the article because I think Drew did a really great job motivating the beauty of the subject and setting the stage for the main results of the paper. While Brant and I did help implement a few modifications to Drew's exposition, the introduction is for the most part Drew's handiwork.

Let me now try to go into more details for the uninitiated.  In this first post, I'll introduce the objects that are the focus of the article—core partitions and related objects called abacus diagrams.

Partitions

A partition (of an integer $n$) is a way to break down $n$ into smaller integral parts.  For example, $5+4+2+1+1=13$, so we would say that $(5,4,2,1,1)$ is a partition of $13$.    The order of the parts doesn't matter, which means that $3+1+1$ and $1+1+3$ would be considered the same partition of $5$.  (When the order of the parts does matter, we would be talking about compositions instead of partitions.)  For this reason, we can and we will always write the numbers in decreasing (really non-increasing) order.

We often use greek letters to represent partitions (especially lambda $\lambda$, mu $\mu$, and nu $\nu$).  So if we want to talk about an arbitrary partition, we might say "Let $\lambda=(\lambda_1,\lambda_2,\dots,\lambda_k)$".  Inherent to this notation are that $\lambda$ is broken down into exactly $k$ parts, that $\lambda_1$ is the largest part, and that $\lambda_k$ is the smallest part (and not equal to zero).

My favorite thing about partitions has to do with the generating function for the number $p_n$ of partitions of $n$:
$$\sum_{n=0}^\infty p_nx^n=\prod_{i=1}^\infty \frac{1}{1-x^i}.$$
Understanding this is a bit involved so I'll delay that for a future post.  However, even if the answer is complicated, the question is very natural since if you are stranded on a desert island (or otherwise have nothing else to do) and in front of you you have a pile of 10 similar-looking rocks, you might start playing around and divide the rocks into piles.  (A partition of 10!)  You may even find all 42 partitions of 10, starting with one pile of ten and ending with ten piles of one rock each.

Since partitions arise naturally when you break down a discrete set of indistinguishable objects, one would expect partitions to appear in multiple areas of mathematics, and they do.  There are entire books devoted to integer partitions and the mathematics arising from them.  Many famous mathematicians have worked on partitions including the amazing Srinivasa Ramanujan.

Pictures

A nice way to represent a partition is by using a Young diagram, where we use up- and left- adjusted boxes with $\lambda_i$ boxes in row $i$.  For example, the Young diagram for $\lambda=(5,4,2,1,1)$ is:
Young diagram of (5,4,2,1,1)
Young diagram of (5,4,2,1,1)
As you can see, there are $5$ boxes in the first row, $4$ boxes in the second row, $2$ boxes in the third row, and $1$ box in each of the fourth and fifth rows.  By representing a partition in this way, we see that the number of boxes in the diagram is the number $n$ that $\lambda$ is partitioning.

A partition $\lambda$ is called self-conjugate if its diagram is symmetric about its main diagonal.  The picture above is not self-conjugate because the second row has more boxes than the second column does.

With this visualization, each box now has a physical location, and we can assign a number to each box based on this location.  For each box $B$, we will define its hook length to be the number of boxes to the right of $B$ plus the number of boxes below $B$ plus $1$ (for $B$ itself).  By connecting these boxes, this creates a "hook" shape, hence the name hook length.  Check that this definition makes sense by verifying the hook lengths for each box in this figure:
Young diagram with hook lengths of each box inserted
Young diagram with hook lengths of each box inserted
The most amazing thing related to hook lengths is the hook length formula, which (among other things) counts the number of ways in which you can fill the boxes of a partition's Young diagram from $1$ to $n$ satisfying that numbers increase as you move right and as you move down.   These fillings are called standard Young tableaux.  The theorem of Frame-Robinson-Thrall states that:

The number of standard Young Tableaux of shape $\lambda=\displaystyle\frac{n!}{\displaystyle\prod_{\text{boxes } B} h(B)}$.

For example, if we wanted to fill the partition above with numbers from $1$ to $13$ so that the numbers increase to the right and increase downward, there would be $\frac{13!}{9\cdot7\cdot6\cdot4^3\cdot3\cdot2^2\cdot1^4}=193050$ ways to do so.  First, I'm amazed that this value is always an integer, no matter what the shape of the diagram is.  And second, I'm even more amazed that it counts standard Young tableaux!

Core partitions

We now have enough information to define a core partition.  A partition $\lambda$ is an $a$-core partition if its Young diagram contains no boxes with hook length $a$.  (I may call them simply $a$-cores below.)  You can check that the partition from above is both a $5$-core partition and an $8$-core partition since there are no boxes of hook length $5$ or $8$.

Every partition is either an $a$-core or it is not.  For $a\geq 2$, there are infinitely many $a$-core partitions so it does not make sense to "count" them.  But as a combinatorist that is always just the beginning of the story; there are always many further questions we can ask.

Question 1.  Is it possible to characterize which partitions are $a$-core partitions for a given value of $a$?

(Barely useful) Answer 1:  Interestingly, the only partitions that are $2$-core partitions are the staircase partitions $\lambda=(n,n-1,\dots,1)$ for all $n$.
Staircase partitions
Staircase partitions
Question 2.  For which values of $n$ does there exist a partition of $n$ that is an $a$-core?

(Notice that Answer 1 tells us that not every value of $n$ has an $a$-core because only the triangular numbers 1, 3, 6, 10, etc. will have a $2$-core.)

Answer 2.   Ken Ono proved that when $a$ is at least four, there will always exist a partition of $n$ that is an $a$-core.  So you can sleep well at night knowing that there exists a partition of 1000 that is a 42-core.

Rishi Nath and I asked questions like this about self-conjugate core partitions and published our results in The number of self-conjugate core partitions, which appeared in the Journal of Number Theory.

Question 3.  How many $a$-core partitions are also $b$-core partitions?

Answer 3.  Notice that we might expect the answer to be infinitely many (there are infinitely many $a$-cores and infinitely many $b$-cores!), but instead we have the following theorem, proved by Jaclyn Anderson:  When $a$ and $b$ are relatively prime, there are only finitely many partitions that are both $a$-core and $b$-core.  Moreover and more impressively, she proved that the exact number is $\displaystyle\frac{1}{a+b}\binom{a+b}{a}$.

We simplify our terminology by saying that a partition $\lambda$ is a simultaneous $(a,b)$-core partition (or simply an $(a,b)$-core) if it is an $a$-core and a $b$-core at the same time.

Abacus diagrams

My favorite thing about core partitions (and simultaneous core partitions) is the wealth of related combinatorial interpretations.  In other words, there are other discrete objects that act like cores in some ways and by studying these alternate objects we learn more about cores, and vice versa.  I know of over a dozen related combinatorial interpretations and my personal long-term goal is to write up an illustrated dictionary/thesaurus about them.  I am always on the lookout for more, so feel free to contact me about this project!  The remainder of this blog post will be about abacus diagrams.

An abacus diagram (or simply an abacus, plural abaci) is an infinite sequence of beads and gaps, one for each integer, that starts with only beads and ends with only gaps.  We can represent this visually by placing the integers on a number line and circling the beads and not circling the gaps:
An abacus diagram
An abacus diagram
In this picture, there are beads for every integer less than or equal to $-5$, for $-2$, $-1$, $2$, $3$, and $6$, while every other integer corresponds to a gap.  The essential part about an abacus is the sequence of beads and gaps, not the numbers.  In particular, if we shifted all the numbers by four, we would have the same abacus diagram with a different labeling, represented visually here:
The SAME abacus diagram
The SAME abacus diagram
I claim that every abacus diagram corresponds to a unique partition, and that every partition corresponds to a unique abacus diagram.  To prove this claim, we can construct a bijection—a systematic rule that pairs up one object of type A with one and exactly one object of type B.  (♥♥♥ I looove bijections! ♥♥♥)  This bijection comes from James and Kerber's book The Representation Theory of the Symmetric Group.  We first show how to find an abacus diagram from a partition.

Key bijection.   Given a partition $\lambda$, draw its Young diagram.  Next, follow the South-East boundary of the partition from bottom to top, recording a gap for each horizontal step and recording a bead for each vertical step.  Fill out the rest of the infinite sequence by padding this sequence with infinitely many initial beads and infinitely many terminal gaps.  This gives an abacus diagram.

Finding a partition from an abacus diagram is the simple reverse of this process.  Start with an infinite sequence of beads and gaps, then starting from the first gap until the last bead, record a horizontal step for a gap and a vertical step for a bead.

Check that the partition that matches the abacus diagram from above is $(6,3,3,1,1,1)$, shown here with red horizontal steps (corresponding to gaps) and blue vertical steps (corresponding to beads).
The partition corresponding to the above abacus diagram
The partition corresponding to the above abacus diagram
The power of abacus diagrams comes when we stack the sequence of beads and gaps into columns.  For example, if we took our abacus from above and arranged the beads and gaps into four columns, we would have the following picture (with the understanding that all smaller numbers are beads and all larger numbers are gaps).
Our abacus arranged into four columns IS 4-flush
Our abacus arranged into four columns IS $4$-flush
This does not seem like much of a change, except that we notice something special: no gap appears above a bead.  We will say that this abacus is $4$-flush, because when the beads and gaps are arranged into four columns, all the beads are flush-upward in each column.  If we had instead used six columns, the diagram would not be $6$-flush because (for example) there is a bead in position $10$ and a gap in position $4$.
Our abacus arranged into six columns is NOT $6$-flush
We align the abaci into columns because:

Amazing Fact: A partition $\lambda$ is $n$-core if and only if its corresponding abacus is $n$-flush!

The reason for this is that a hook of length $n$ in a Young diagram corresponds exactly to a bead-gap pair where the bead occurs $n$ entries earlier than the gap in the abacus diagram, which is why a gap would occur above a bead in the stacked abacus diagram.  We can infer that the above blue-red rimmed partition is a $4$-core partition and not a $6$-core partition because the corresponding abacus is $4$-flush and not $6$-flush.

Consequence:  A simultaneous $(a,b)$-core corresponds to an abacus diagram that is simultaneously $a$-flush and $b$-flush.

While the article I wrote with Brant and Drew has as its subject simultaneous core partitions, it turns out to be much easier to work with these "simultaneous abacus diagrams", and they form the basis for the arguments in the article.  In fact, a working title for the article was once "Applications of abacus diagrams to simultaneous core partitions".

Stopping for now

In Part 2 (which I hope I continue to have the energy for), I plan to talk about the beautiful geometry of simultaneous core partitions.   Then Part 3 will deal with combinatorial statistics and $q$-analogs of Catalan numbers.  Although a new post is unlikely to appear for at least a month.

Until then,
The Mathematical Zorro

Friday, August 9, 2013

Why blog about mathematics?

Hi everyone!

An important part of being a researcher is conveying what you learn to others.  The way mathematicians convey their results to colleagues is to write articles, which nowadays are posted on the arXiv and submitted for publication in journals.  In a journal, an article is ideally peer-reviewed to check for correctness and then published once any issues are corrected.  

This system works well for mathematicians to convey topics to other mathematicians who have a similar background of knowledge as themselves.  However, the size of the audience for these specialized journal articles is limited.  For example, if I try to talk to other research mathematicians in my own department about our recent results, this is a non-trivial undertaking.  

I think that it is our duty as mathematicians to share our understanding with as wide an audience as possible, and I think that creating and maintaining a blog is one good way to try to explain my research to a wider audience.  I have been hoping to do this for a while and I figured that I would start with my most recent joint work on simultaneous core partitions with Brant Jones and +Drew Armstrong.  I may just have gotten a round tuit.

I realize that even when I try to convey these ideas, it will not make sense to everyone.  But I expect this to be a learning experience for me as well as for you.  If you have any questions about the topics involved, leave a comment and I will try to answer your questions by providing external links or writing additional blog posts.

I would encourage other researchers to broaden their audiences as well, be it in research mathematics, mathematics education, or any other field.  I think it is good for the researcher to try to convey their ideas to a wider field, and good for the public to see what it is that we do.  I see this as part of a larger project, similar to +Dana Ernst's recent post about making a "Science Gist" for mathematics.  

Onward and upward!

Hello World.

Do not expect miracles.