# Rule of 45 over lines

- Difficulty: Expert
- On the web: https://blinku.app/learn/band-sum

A few neighbouring rows (or columns) together hold each digit a set number of times, so their sum is set too: 90 for two rows, 135 for three.

The rule of 45 isn't only for one region. Take two to four neighbouring rows and add up the cages lying wholly inside them: 45 times the rows, less that, is what the cells left over make. When few cells are left and the sum pins them down, a digit goes in or candidates come out.

Cages reaching outside work the same way: when the cells left over all sit in cages that cross out, those cages' sum less the part inside is what the cells outside make. Columns work alike.

## 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: "a=23" means cage a adds up to 23. Each step names the cages it is about the same way.

```text
   1  2  3    4  5  6    7  8  9
1 a. a. b. | c. d. e. | e. f. f.
2 a. b. b. | c. d. g. | g. g. g.
3 a. h. b. | d. d. i. | i. i. i.
  ---------+----------+---------
4 j. h. b. | d. d. k. | l. l. m.
5 j. j. b. | n. k. k. | m. m. m.
6 o8 j. j. | n. n. p. | p4 m. m.
  ---------+----------+---------
7 o3 q. n. | n. r. p. | p8 s. t7
8 u. q. v7 | r. r. w. | s. s. s.
9 u. q. r. | r. w. w. | s. s. x9

a=23 b=28 c=8  d=36 e=8  f=12 g=14 h=11 i=18
j=20 k=17 l=13 m=28 n=24 o=11 p=27 q=15 r=27
s=21 t=7  u=6  v=7  w=15 x=9
```

1. **Where to look** (p=27): A pointer first: look at the 27 cage. Its two cells left must make 15. Which digits can they use?
2. **Cage combinations** (p=27): The two cells left in the 27 cage must make 15, which only 6+9 can do. So those cells can't be 1, 2, 3, 5, or 7.
3. **Rule of 45** (q=15, u=6, v=7): The cells in the bottom-left box add up to 45 and the cages wholly inside make 28, so the other three cells make 17. Tried against their candidates, 1, 2, 4, 5, and 6 can't fit, so they go.
4. **Rule of 45 over lines** (q=15, r=27, s=21): The cages partly in row 8 and in row 9 make 63, 53 of it inside, so the three cells sticking out make 10. Tried against their candidates, 2 can't fit, so it goes.

## In hints

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