On Tuesday the winners of the most prestigious award in mathematics — the Fields Medal — were announced. The award is given to two to four mathematicians under age 40 every four years "to recognize outstanding mathematical achievement for existing work and for the promise of future achievement."

This award is typically given for mathematical research that solves or extends complicated problems that mathematicians have struggled with for decades or even centuries.

And, believe it or not, one of the winners, Manjul Bhargava, reformulated a 200-year-old number theory problem in a rather unconventional way: by using a Rubik's Cube and Sanskrit texts.

But before we get to his idea, let's go over some background.

Here's an interesting mathematical idea: If two numbers that are each the sum of two perfect squares are multiplied together, the resulting number will also be the sum of two perfect squares.

Let's take the numbers 25 (a perfect square of 5) and 36 (a perfect square of 6) and add them together as an example. The resulting equation would read:

(25 + 25)(36 + 36) = 3600, where 3600 equals ((36*36) + (48*48)), or (1296 + 2304).

You can keep trying this with all different number combinations — as long as the four numbers in the brackets are perfect squares — and the output will always also be a perfect square. (Yes, math is awesome.)

But let's get back to Bhargava. His grandfather, Purushottam Lal Bhargava, was the head of the Sanskrit department of the University of Rajasthan — and so "Bhargava grew up reading ancient mathematics and Sanskrit poetry texts," according to Quanta Magazine.

In one of these manuscripts, he discovered a "generalization [similar to the above math] developed in the year 628 by the great Indian mathematician Brahmagupta" that stated:

If two numbers that are each the sum of a perfect square and a given whole number times a perfect square are multiplied together, the product will again be the sum of a perfect square and that whole number times another perfect square.

Later on, when he was a graduate student, Bhargava learned that Carl Gauss — a leading mathematical figure of the 18th and 19th century "came up with a complete description of these kinds of relationships" — provided that the expressions had only two variables, and only quadratic forms (meaning x2, but not x3).

Essentially, Gauss came up with a "composition law" that would tell you which quadratic form you'd get if you multiplied two of these kinds of expressions together.

But here's the downside: Gauss' law took him approximately 20 pages to write out. Ouch. No one wants to read through all of that.

Bhargava was interested in uncovering an easier way to describe Gauss' law — and perhaps if he could tackle higher exponents, according to Quanta Magazine.

Then one day, Bhargava thought of a solution when he was sitting in his room, looking at a Rubik's Cube. He took a mini-cube (a 2x2 Rubik's Cube) and "realized that if he were to place numbers on each corner of the mini-cube and then cut the cube in half, the eight corner numbers could be combined in a natural way to produce a binary quadratic form," according to Quanta Magazine.



If you think about a Rubik's Cube, you'll note that there are three ways to cut the cube in half. You can split the top from the bottom; you can split the right from the left; you can split the front from the back.

In fancy math terms, that means that by cutting a Rubik's cube in three ways, you can generate "three quadratic forms."

The interesting thing about this, is that Bhargava discovered that these quadratic forms "add up to zero" — not when using normal addition, but "with respect to Gauss' method for composing quadratic forms."

And ta-da, by simply dividing a Rubik's Cube, he "gave a new and elegant reformulation of Gauss' 20-age law."

Bhargava said about this moment to the New Scientist:

Gauss's law says that you can compose two quadratic forms, which you can think of as a square of numbers, to get a third square. I was in California in the summer of 1998, and I had a 2 x 2 x 2 mini Rubik's cube. I was just visualising putting numbers on each of the corners, and I saw these binary quadratic forms coming out, three of them. I just sat down and wrote out the relations between them. It was a great day!

Afterward, Bhargava worked with a Rubik's Domino (a 2x3x3 shape) — and he realized that he could go beyond the limited quadratic forms of Gauss' law.

Eventually, he went on to discover 12 more compositional laws, which later became his Ph.D. thesis.

According to Quanta Magazine, Barghava said that he had always been interested in ideas like this — the “problems that are easy to state, and when you hear them, you think they’re somehow so fundamental that we have to know the answer.”