# Cage combinations

- Difficulty: Easy
- On the web: https://blinku.app/learn/cage-combination

A cage's empty cells must make the rest of its sum with digits that don't repeat; a digit no way of making it uses can't go there.

Take a cage: its sum less the digits already in it is what its empty cells still have to make. No digit may repeat, not even one already there, so there are often few ways: two cells making 3 can only be 1+2, two making 17 only 8+9, three making 6 only 1+2+3.

Note every digit some way of making the sum uses; the others come out of those cells. This looks only at the sum and the digits already in the cage, not at the cells' candidates.

## 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. am9 | am. am. ar5 | as. as. at.
6 au7 aq. aq. | av. av. av. | as. at. at.
  ------------+-------------+------------
7 au4 aw1 ax7 | ax. ax. ax. | as. ay. at.
8 az6 aw. aw. | ba1 bb. bb. | ay. ay. ay.
9 aw. aw. bc3 | 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** (ao=7): A pointer first: look at the 7 cage. Its two cells left must make 7. Which digits can they use?
2. **Cage combinations** (ao=7): The two cells left in the 7 cage must make 7, which only 1+6, 2+5, or 3+4 can do. So those cells can't be 7.

## In hints

The hint marks the cage, lists every way to make its sum, and strikes the digits none of them use.
