Computational Thinking: Number Hive Puzzles

Computational Thinking: Cut Hive Logic Puzzles  is a booklet on computational thinking based on logic puzzles. Try and solve some simple logic puzzles while  learning about computational thinking and especially logical thinking. The booklet is written by Paul Curzon of Queen Mary University of London.

  •  Learn how to solve Number / Cut Hive puzzles, simple logic puzzles that involve filling a hexagonal ‘hive’ with numbers so that no number appears next to itself. See how by deriving new general rules that extend the rules of the puzzle you unlock the power of pattern matching.
  • Learn about logical thinking, deduction, rewrite rules, pattern matching, abstraction, generalisation and computational thinking.
  • Download the  booklet: Computational Thinking: Cut Hive Logic Puzzles


  1.  Each area must contain the numbers from 1 up to the number of hexagons in the area. For example, the topmost area in the puzzle above consists of 4 hexagons so those hexagons must be filled with the numbers: 1, 2, 3 and 4 with no repeated numbers. If the area has two hexagons, like the one bottom left below, then it must be filled with the numbers 1 and 2.
  2. No number can be next to the same number in any direction, along a shared edge. So in the hive above, the fact that there is a 4 in the middle means there cannot be a 4 in any of the 5 hexagons surrounding it.

Computational Thinking Hint

Work out patterns or bigger step rules, from the above rules, that allow you to fill in numbers with less logical thinking. Instead you should be able to pattern match against your new rules. For example, a simple rule that follows from the above is that:

IF an area has only one hexagon THEN it must contain the number 1.

Resources: Number Hive puzzles

Here are some Number Hive puzzle sheets and solutions that you can download: