Mathematics

The Mathematics Behind Sudoku

Every day, millions of people enjoy solving Sudoku puzzles in newspapers, books, or on their phones. It looks like a simple game of filling numbers into a grid. But there is much more to Sudoku than meets the eye. Behind its simple rules lies some interesting mathematics that makes every puzzle a unique and satisfying challenge.

Sudoku in a newspaper

It is really a Latin square wearing a disguise

Long before Sudoku became a newspaper staple, mathematicians studied something called a Latin square, a grid where every row and every column contains each symbol exactly once. Sudoku builds on that idea by adding one extra rule: each of the nine 3 Ă— 3 boxes must also contain every digit exactly once. That single extra rule is what makes Sudoku much richer than an ordinary Latin square and much harder to count.

How many finished grids actually exist

Here is a number that will surprise you. There are 6,670,903,752,021,072,936,960 different ways to fill a standard 9 x 9 Sudoku grid. That is more than 6.67 sextillion possible completed grids.

It is hard to picture a number that large. Even if you completed a different Sudoku grid every second, without ever taking a break, you still would not finish them all in your lifetime.

This number was worked out in 2005 by two researchers, Bertram Felgenhauer and Frazer Jarvis, using a mix of clever counting and brute force computer checking. They did not check every possibility by hand. They found patterns in how the top band of boxes could be filled, then multiplied cleverly to reach the full total.

The magic number 17

Now let’s look at another interesting question. What is the smallest number of clues a Sudoku puzzle can start with and still have only one correct solution?

The answer is 17 clues.

A Sudoku puzzle has 81 boxes, but it can start with just 17 filled boxes and still have only one correct answer. If it starts with 16 or fewer clues, there will always be more than one possible solution.

For many years, mathematicians wondered whether a 16-clue Sudoku puzzle with a unique solution existed. Many people searched for one, but no one could find it.

In 2012, three mathematicians, Gary McGuire, Bastian Tugemann, and Gilles Civario, finally proved why. They used powerful computers to check every possible 16-clue Sudoku puzzle. After checking them all, they found that none had a unique solution. That is why 17 is the smallest possible number of clues for a standard Sudoku puzzle.

One grid secretly hides thousands of twins

Here is a fun trick. Take any completed Sudoku grid and rotate it 90 degrees. It is still a valid Sudoku. Flip it like a mirror. It is still valid. Swap every 3 with every 7 throughout the grid. It is still valid.

These changes are called symmetries. They change how the grid looks, but they never break any Sudoku rule.

Because of these symmetries, many completed Sudoku grids are actually the same puzzle in a different form. Although there are more than 6.67 sextillion completed Sudoku grids, only about 5,472,730,538 are truly different. The rest are simply different versions of one of these unique grids.

Sudoku is secretly a colouring problem

Here is another interesting way to think about Sudoku. Imagine each of the 81 boxes as a dot. Draw a line between any two dots that share the same row, column, or 3 Ă— 3 box.

Now imagine giving each dot one of nine different colours, making sure that no two connected dots have the same colour. This is called graph colouring, and solving Sudoku follows the same mathematical idea.

Graph colouring is used in many real-world problems, including creating school exam schedules and assigning radio frequencies so nearby cell phone towers do not interfere with one another.

Why even computers can struggle

Computers can solve a standard 9 Ă— 9 Sudoku puzzle very quickly. However, much larger Sudoku puzzles, such as 16 Ă— 16 or 25 Ă— 25, can take much longer to solve.

In 2003, researchers Takayuki Yato and Takahiro Seta showed that there is no single fast method that works for every larger Sudoku puzzle. As the size of the puzzle increases, the time and computing power needed to solve it also increase.

A simple puzzle with extraordinary mathematics

A Sudoku puzzle may look like a simple game of numbers, but it is connected to some amazing ideas in mathematics. Behind every puzzle are huge numbers, clever patterns, and interesting mathematical rules.

Every Sudoku puzzle you solve is one unique arrangement chosen from more than 6.67 sextillion possible completed grids. It can have a unique solution with as few as 17 clues, and many completed grids are actually the same puzzle in a different form because of mathematical symmetries.

That is what makes mathematics so special. It is often hidden in everyday things, waiting to be discovered.

Happy Solving!!!

Wind chill Temperature (‘Feels like’)

Ever noticed the “feels like” term in your weather app?

Your Weather app forecasts high, low, and “feels-like” temperatures.

The “feels like” temperature is helpful because it gives a more accurate representation of what it will feel like when you step outside, beyond just the recorded air temperature. It’s a useful metric for individuals to better prepare for the weather and dress accordingly.

The feels-like values are not just randomly predicted numbers but are calculated by considering certain factors using the wind chill formula.

In 1945, Paul Allman Siple and Charles F. Passel created the wind chill formula that is currently in use in the United States and Canada. They conducted experiments with human subjects to understand how wind and temperature interact to influence perceived coldness. The formula has undergone revisions over the years, and the current version is based on their initial work.

The wind chill formula is used to calculate the wind chill temperature, which is the perceived temperature felt on exposed skin due to the combined effects of the actual air temperature and wind speed.

WCT = 35.74 + 0.6215 X T – 35.74 X V0.16 + 0.4275 X T X V0.16

  • T stands for temperature, and V stands for wind speed.
  • WCT is the wind chill temperature in Fahrenheit.

In summary, the formula helps to estimate how wind and temperature interact, providing a more accurate representation of the perceived coldness in windy conditions.

For temperatures in Celsius, a different formula is used. The formula for the Wind Chill Temperature (WCT) index in Celsius is:

WCT = 13.12 + 0.6215 X T – 11.37 V0.16 + 0.3965 X T X V0.16

  • T stands for temperature, and V stands for wind speed.
  • WCT is the wind chill temperature in Celsius.

Again, it’s important to note that different countries and meteorological agencies may use slightly different formulas or criteria for calculating wind chill, so variations may exist in different regions.