Computational Thinking: Number 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: Number Hive Logic Puzzles
- Download and complete the individual puzzles below.

- 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.
- 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.
A more general rule that covers the above is that:
IF an area has only one hexagon left empty THEN it must contain the number missing from 1 …n (where n is the number of hexagons in this group.
What other rules can you work out to help you do the puzzles?
Resources: Number Hive puzzles
Here are some Number Hive puzzle sheets and solutions that you can download:
Puzzle 1
- Puzzle Sheet: Number Hive Puzzle Sheet 1 [PDF]
- Solution Sheet: Number Hive Solution Sheet 1 [PDF]
Puzzle 2
- Puzzle Sheet: Number Hive Puzzle Sheet 2 [PDF]
- Solution Sheet: Number Hive Solution Sheet 2 [PDF]
Puzzle 3
- Puzzle Sheet: Number Hive Puzzle Sheet 3 [PDF]
- Solution Sheet: Number Hive Solution Sheet 3 [PDF]
Puzzle 4
- Puzzle Sheet: Number Hive Puzzle Sheet 4 [PDF]
- Raw Puzzle Sheet: Raw version of Number Hive 4 for use in your own activity sheets [PDF]
- Solution Sheet: Number Hive Solution 4 [PDF]
Puzzle 5
- Puzzle Sheet: Number Hive Puzzle 5 [PDF]
- Raw Puzzle Sheet: Raw Version of Number Hive 5 for use in your own activity sheets [PDF]
- Solution Sheet: Number Hive Solution 5 [PDF]
Puzzle 6
- Puzzle Sheet: Number Hive Puzzle 6 [PDF]
- Solution Sheet: Number Hive Solution 6 [PDF]