# Rule of 45

- Difficulty: Medium
- On the web: https://blinku.app/learn/house-sum

A row, column or box holds 1 to 9 once each, so it adds up to 45; take away the cages lying wholly inside it and you know what the cells left over make.

Pick a row, column or box and add up the cages lying wholly inside it. 45 less that is what the rest of its cells add up to (21 on a 6×6). With one cell left over, that is its digit.

It works the other way too: when the cells left over all sit in cages reaching outside, those cages' sum less the part inside is what the cells sticking out make. When a few cells make a sum, try their candidates against it and strike what can't fit.

## This example, step by step

A killer sudoku: each cell is written as its cage's name, then its digit ("." where it is empty). Under the board are the cages' sums: "aa=19" means cage aa adds up to 19. Each step names the cages it is about the same way.

```text
    1   2   3     4   5   6     7   8   9
1 aa. aa. ab. | ab. ab. ab. | ac. ad1 ad5
2 aa. aa. ab. | ae. ae. af2 | ac. ag7 ah3
3 ai. aj. ab. | ae. ak. ak. | ak. ak. al8
  ------------+-------------+------------
4 ai. aj. am8 | an9 ao. ao. | ak. ak. ap4
5 aq. aq. am. | am. am. ar5 | as. as. at.
6 au. aq. aq. | av. av. av. | as. at. at.
  ------------+-------------+------------
7 au. aw. ax. | ax. ax. ax. | as. ay. at.
8 az6 aw. aw. | ba1 bb. bb. | ay. ay. ay.
9 aw. aw. bc. | bc. bc. bd7 | ay. ay. be1

aa=19 ab=31 ac=13 ad=6  ae=17 af=2  ag=7  ah=3  ai=11
aj=12 ak=23 al=8  am=28 an=9  ao=7  ap=4  aq=14 ar=5
as=20 at=22 au=11 av=13 aw=25 ax=21 ay=33 az=6  ba=1
bb=13 bc=13 bd=7  be=1
```

1. **Where to look** (am=28): A pointer first: the sum of the cells in the centre box is set. Compare it with the cages there.
2. **Rule of 45** (am=28): The cages partly in the centre box make 28, 11 of it inside, so the two cells sticking out make 17. The filled ones make 8, so row 5, column 3 is 9.

## In hints

The hint points at the region first. It shades the region blue and marks the cells whose sum it works out, then fills a digit or strikes the candidates that can't make it.
