How to play
NOUGHTS · WALNUT & BRASS

Magic Hexagon

Make every line total 38

0 swaps0:001/15 lines

Tap any unlocked tile · locks stay in place.

Across →
Diagonal ↙
Diagonal ↘

Tap any total to trace its line on the board.

A little wooden puzzle. A lovely big challenge.

Arrange the numbers 1 to 19 so every straight line adds up to 38. There are five lines in each of three directions: across, down to the left and down to the right. All fifteen must work at the same time.

Tap a tile, then tap another to swap them. A green total means that line makes 38. Tap a total to see exactly which tiles belong to it. Easy mode gives you seven fixed tiles, marked with a little brass lock. Challenge leaves all nineteen free.

Stuck? Hint makes one helpful swap towards a solution. Undo takes back your last swap. There is no time limit, so settle in and enjoy moving the numbers around.

A CLOSER LOOK

Magic Hexagon: the lovely maths behind 38

You only need addition to play. But underneath those nineteen little tiles is a surprisingly tight web of connections. Here is what is happening, one small idea at a time. You can read this without revealing the finished board.

Natural honeycomb beside wooden hexagonal tiles
Hexagons fit together beautifully in nature and in puzzles.

1. Start with the shape

The board has five horizontal rows: three tiles, then four, then five, then four, then three. Add those row lengths and you get 19 spaces. Another way to count is to start at the centre: one middle tile, a ring of six neighbours, then an outer ring of twelve. So 1 + 6 + 12 = 19.

One centre + six neighbours + twelve outside = nineteen tiles

These are two ways of counting the same board, rather than two different layouts.

The small tiles are hexagons, meaning they have six sides. They fit together without gaps, just like a honeycomb. This arrangement gives us three families of straight lines.

Three brass rods crossing over wooden hexagonal tiles
Three directions connect every position to the rest of the puzzle.

2. Which lines count?

Look across the board and you can find five horizontal lines. Now follow the tiles diagonally down to the left: there are another five lines. Follow them down to the right and there are five more. That makes 5 + 5 + 5 = 15 lines to check.

In each direction, the lines contain 3, 4, 5, 4 and 3 tiles. A line must run straight through neighbouring tile centres. A zigzag or a route around the edge does not count. Tap one of the totals below the game to see its exact route.

Every tile belongs to three lines: one in each direction. That includes the outer tiles. This is why a number that looks perfect in one row can still cause trouble elsewhere.

Small and large wooden counters arranged in pairs
Pairing small and large values can make addition simpler.

3. Why is the target exactly 38?

It is not a number we chose to make the game difficult. It follows from the numbers on the tiles. The total of 1 through 19 is 190. You can check that without doing eighteen separate additions.

Pair the smallest number with the largest: 1 + 19 = 20. Then 2 + 18 = 20, and 3 + 17 = 20. Carry on until you have nine pairs, ending with 9 + 11. The number 10 is left in the middle. Nine lots of 20, plus 10, gives 190.

9 × 20 + 10 = 190
190 ÷ 5 = 38

The five horizontal rows use every tile exactly once. If those five rows all have the same total, each must contain one fifth of 190.

The same reasoning works for either diagonal family: its five lines also use every tile once. So 38 is the only possible shared total for this board when we use the numbers 1 to 19 once each.

Brass scales balancing wooden counters
Equal totals are a balancing act.

4. Why not divide 190 by fifteen?

Because the fifteen lines overlap. When you add the totals of all fifteen lines, you count every tile three times, once for each direction. That gives 3 × 190 = 570. Fifteen lines of 38 also give 570. Both ways agree.

To divide the tile total fairly between lines, choose just one family of five. Within that family there is no overlap.

Hands arranging wooden hexagonal puzzle pieces
Build the shape first, then explore how the lines connect.

5. Short lines need bigger numbers, on average

A line of three tiles has to do the same job as a line of five: reach 38. That means the three-tile line needs an average of 38 ÷ 3, or about 12.67 per tile. A four-tile line needs an average of 9.5, and a five-tile line needs 7.6.

Different line lengths, the same target
Tiles in lineTotalAverage per tile
338About 12.67
4389.5
5387.6

This is a useful nudge, not a rule saying every outside tile must be large. A small number can belong to a short line if its companions make up the difference. For example, 4 + 15 + 19 = 38. That combination works as an addition, although it does not promise that all the crossing lines will work.

A wooden hexagon arrangement with a missing centre piece
Ask what is missing before choosing your next move.

6. Think about the missing amount

Instead of asking “Which number should I try?”, ask “How much does this line still need?” Suppose two numbers in a three-tile line are 8 and 13. Together they make 21, leaving 38 − 21 = 17. The remaining space would need 17.

If the required number has already been used elsewhere, you have a choice to investigate. If the required number is 0, negative, or larger than 19, the current choices cannot complete that line. For instance, 4 and 9 leave 25, which is not one of our tiles. At least one of those choices must change.

With two spaces left, look for a pair. If the existing numbers total 23, the last pair must total 15. Possible pairs include 1 and 14, 2 and 13, or 7 and 8, provided those tiles are available and their crossing lines can also work.

A hand lifting a wooden tile from a puzzle board
A single move can change several crossing lines.

7. A swap is a small balancing act

Suppose a line totals 34. It needs four more. Replacing a 7 on that line with an 11 increases its total by exactly four. That is a much more focused experiment than swapping at random.

But the 7 has to go somewhere: this is a swap, not a replacement from a spare pile. The other affected lines change too. Each swapped tile sits on three lines. If the two positions share a line, that shared line keeps the same total, because it still contains both numbers. The other lines through those positions may change.

New total = old total − number leaving + number arriving

Example: 34 − 7 + 11 = 38. Check the other affected totals before deciding whether the swap helped overall.

This also explains why a green line can disappear after a sensible-looking move. Green means its sum is right now; it does not prove every tile on it has reached its final home.

Maple and walnut counters paired on green felt
Pairs offer a useful way to think about odd and even.

8. Odd and even numbers give another clue

The target, 38, is even. A line can therefore contain zero, two or four odd numbers, depending on its length. It cannot contain an odd number of odd tiles.

Why? Two odd numbers add to an even number. Adding an even number keeps a total even. But one unpaired odd number makes the total odd. So a three-tile line must contain either no odd numbers or two; three odd numbers cannot work.

This check will not solve a line by itself. It is a quick way to rule out a combination before spending time on it.

A handcrafted wooden hexagon puzzle in warm sunlight
A quiet invitation to explore shape and number.

9. Why is it harder than it looks?

Making one line total 38 is quite easy. Making fifteen overlapping lines do it together is the challenge. There are 19 choices for the first space, 18 for the next, then 17, and so on. Multiplying those choices gives 19 factorial, written 19!.

19! = 121,645,100,408,832,000

That counts all placements of nineteen different tiles before checking any sums. Most can be ruled out quickly with the clues above.

You do not need to search that enormous list. A computer can use the same kind of reasoning: place a number, check whether the nearby lines can still work, and backtrack when a choice makes a solution impossible. Backtracking simply means returning to an earlier decision and trying a different route.

Wooden hexagonal tiles reflected in a brass mirror
Turning or reflecting a pattern preserves its relationships.

10. Is there more than one solution?

For the classic 1–19 puzzle, there is one underlying solution if we treat rotations and mirror images as the same pattern. Turn a solved board through 60 degrees and it still works. Reflect it in a mirror and the line totals still work too. Together these give twelve orientations of the same solution.

Our Challenge mode accepts any arrangement that makes every line total 38. Easy mode fixes seven tiles in one orientation. The Hint button guides you towards the particular solution used to prepare the puzzle, so a hint is help towards that layout rather than proof that your previous move was wrong.

11. A calm way to get started

  1. Begin with a short line. It has fewer numbers to juggle.
  2. Work out the missing amount, or the pair you still need.
  3. Inspect the two other lines through a tile before moving it.
  4. Use the difference between tile values to plan a swap.
  5. Keep an eye on green totals, but allow yourself to disturb one when exploring a better arrangement.

Try Easy first to get a feel for the connections. The locked tiles give you firm reference points. When you want the whole puzzle to yourself, Challenge lets every tile move. There is no deadline: noticing a useful relationship is part of the pleasure.

Further reading: Wolfram MathWorld: Magic Hexagon · Frank R. Kschischang, University of Toronto: The Magic Hexagon. The worked examples above illustrate the arithmetic; they are not a finished-board reveal.

A little help understanding Noughts? Allow optional Google Analytics cookies to measure visits and how the site is used. Your game works either way.

About these cookies

Google Analytics receives information about your browser, device and site usage when you accept. Your guesses and saved win record are not sent by this integration. Your choice is remembered in this browser for six months. You can withdraw consent using Cookie settings below. Clearing browser data removes your choice.

Google’s privacy policy ↗