Sudoku Triples - How to Tell a Naked Triple from a Hidden Triple
Sudoku has two kinds of triple: a naked triple, where three cells hold only three digits between them, and a hidden triple, where three digits can only go in three cells. This article finds both in the same row of one grid and shows what each one counts, where it removes candidates, how the number of empty cells tells you which to look for, and the usual counting slips.
What does a triple count?
When pairs stop giving you anything, triples are the next thing to look for. There are two kinds, and they count different things. A naked triple counts cells. Pick three cells in the same row, column or box; if their candidates add up to only three different digits, you have one. Those three digits must then fill those three cells, so you can remove them from every other cell in the unit. A hidden triple counts digits. If three digits in a unit can only go in the same three cells, you have one, and you can remove every other candidate from those three cells. This article finds both triples in the same row of one grid, shows how to decide which one to look for, and lists the usual counting slips. How pairs work is left to the articles on naked pairs and hidden pairs.
What changes from pairs to triples
The biggest difference between pairs and triples lies in how many candidates each cell must hold. In a naked pair, both cells must hold exactly the same two candidates and nothing else. In a naked triple, the three cells do not all need the same three candidates. Each cell may hold two or three, as long as all three cells together hold no more than three different digits (according to the guide to the solver HoDoKu). SudokuWiki, a site that explains solving strategies one by one, sorts the possible patterns into the four shapes in the table below. The last shape is the one people miss. With {1,6}, {6,8} and {1,8}, every cell has two candidates and no two cells match. If you scan the grid with pairs in mind, looking for two cells with the same two candidates, you walk right past it. Hidden triples work the same way: each of the three digits does not need to appear in all three cells. A digit may have only two places, as long as the places for all three digits together fit inside three cells.
| Shape | Example candidates in the three cells | Cells with two candidates |
|---|---|---|
| 3/3/3 | {1,6,8} {1,6,8} {1,6,8} | 0 |
| 3/3/2 | {1,6,8} {1,6,8} {1,6} | 1 |
| 3/2/2 | {1,6,8} {1,6} {6,8} | 2 |
| 2/2/2 | {1,6} {6,8} {1,8} | 3 |
The shapes follow SudokuWiki's Naked Candidates page. In every shape, the three cells together hold three digits: 1, 6 and 8.
A naked triple on a real grid
The grid below is a position from a puzzle made for this article, advanced using only single-candidate cells and the only place a digit can go, until no more progress was possible. Applying naked pairs, hidden pairs, pointing pairs and box/line reduction until they stop removes only the 1 from r5c4 and r6c4; not a single candidate in row 1 goes. Here r stands for row and c for column, so r1c3 is the cell in row 1, column 3. Row 1 has six empty cells, with candidates r1c3 {1,6}, r1c4 {4,6,7}, r1c5 {3,4,6,7,8}, r1c6 {6,8}, r1c7 {1,8} and r1c8 {1,3,7,8}. Look at r1c3, r1c6 and r1c7: between them they hold only three digits, 1, 6 and 8. Three cells take three digits, one each, so 1, 6 and 8 are used up by these three cells. You can therefore remove 1, 6 and 8 from the other three cells of row 1. Five candidates go: 6 from r1c4, 6 and 8 from r1c5, and 1 and 8 from r1c8. This is the 2/2/2 shape from the table above. Note that r1c3 holds the same {1,6} as r2c3, so the two form a naked pair in box 1 and column 3. Neither unit has any other empty cell, though, so the pair removes nothing.
- The three cells of the naked triple (1, 6, 8)
- The three cells that lose candidates
Candidates of the empty cells in row 1: r1c3 {1,6}, r1c4 {4,6,7}, r1c5 {3,4,6,7,8}, r1c6 {6,8}, r1c7 {1,8}, r1c8 {1,3,7,8}. The triple removes five candidates: 6 from r1c4, 6 and 8 from r1c5, and 1 and 8 from r1c8.
Reading the same row as a hidden triple
Now count row 1 again, this time from the side of the digits. The digits still missing from row 1 are 1, 3, 4, 6, 7 and 8. Counting places digit by digit, 3 can only go in r1c5 and r1c8, 4 only in r1c4 and r1c5, and 7 only in r1c4, r1c5 and r1c8. Together, the places for 3, 4 and 7 fit inside three cells: r1c4, r1c5 and r1c8. Three digits are shut inside three cells, so those cells must take 3, 4 and 7, with no room left for anything else. That is a hidden triple, and it lets you remove every candidate other than 3, 4 and 7 from the three cells. What goes is 6 from r1c4, 6 and 8 from r1c5, and 1 and 8 from r1c8, exactly the same five candidates the naked triple removed. Afterwards the candidates are r1c4 {4,7}, r1c5 {3,4,7} and r1c8 {3,7}. With the 8 gone from r1c5, the only place left for 8 in column 5 is r6c5, so r6c5 becomes 8 and the grid moves on. Two of the digits have only two places each, but 3 and 4 alone do not make a pair, because the places for 3 and the places for 4 are not the same two cells. The two readings of the row removed the same candidates for a reason, which a later section explains.
Which triple to look for first
The two triples start from different places. Look for a naked triple starting from cells with few candidates. In each unit, pick out the cells with two or three candidates and look for a group of three whose candidates add up to only three digits. A cell with four or more candidates cannot be part of a naked triple. Look for a hidden triple starting from digits with few places. In a unit, pick out the digits with two or three places and look for three of them whose places fit inside three cells. If a digit has only one place, settle it first as a hidden single, before thinking about triples. HoDoKu notes that finding larger hidden subsets takes a good short-term memory, and that many players prefer larger naked subsets once candidates are written in. The table below sums up what each triple counts and where it removes candidates.
| Point | Naked triple | Hidden triple |
|---|---|---|
| What you count | Kinds of candidates in three cells | Cells where three digits can go |
| Where to start | Cells with two or three candidates | Digits with two or three places |
| When it holds | Three cells hold three digits in all | Three digits fit in three cells in all |
| What you remove | The three digits from other cells in the unit | Other candidates inside the three cells |
| In this grid | 1, 6, 8 in r1c3, r1c6, r1c7 | 3, 4, 7 in r1c4, r1c5, r1c8 |
In a unit with six empty cells, whenever one kind of triple is present, the other three cells hold the other kind.
Empty cells decide the two sides
Say a unit has n empty cells. If k of them form a naked group, the other n - k cells form a hidden group of the other n - k digits. Once k digits are shut inside k cells, the remaining digits have nowhere to go but the remaining cells. SudokuWiki puts it the same way: the complement of a naked set is hidden, and the complement of a hidden set is naked. Row 1 of the grid has six empty cells, so the three-cell naked triple had a three-cell hidden triple on its other side. In a unit with seven empty cells, the other side of a hidden triple is a four-cell naked quad. With five empty cells, the other side of a naked triple is a two-cell hidden pair. This tells you which side to search. Both sides remove the same candidates, so finding the smaller group is enough. In a unit with six empty cells or fewer, every group has a side of three cells or fewer. In a unit with eight empty cells, a three-cell naked group has a five-cell hidden group on its other side, and a three-cell hidden group a five-cell naked one, so searching for three-cell groups covers both. Once you pick a unit, count its empty cells first, and search from the side where the group is no larger than half of them.
Triples locked in a row and a box
Sometimes the three cells of a triple sit in one row and one box at the same time. A row and a box overlap in exactly three cells, so this is the case where all three cells lie in that overlap. HoDoKu calls this a locked triple: when a naked group is confined to both a row and a box, you can remove candidates from both units. The same holds for a column and a box. For example, if the three cells in columns 1 to 3 of some row hold only three digits between them, you can remove those three digits from the other six cells of that row and from the other six cells of the box that contains them. Whenever you find a triple in one unit, check whether its three cells also fit inside a second one. As HoDoKu points out, the overlap has only three cells, so there is no locked quad.
Common mistakes and how to spot them
The first mistake is looking only for three cells that share the same three candidates. In the 2/2/2 shape no cell holds the third digit, so just glancing at the candidates makes it easy to miss. Get into the habit of counting the kinds of candidates across the three cells, and you will find triples of any shape. The second is taking three cells with four digits between them for a triple. {1,6}, {6,8} and {1,3,8} add up to 1, 3, 6 and 8, four digits, so they remove nothing. The third is using three cells that do not share one unit. If two cells are in the same row and the third only shares a box with one of them, there is no unit for the three digits to fill. The fourth, with hidden triples, is missing that one of the three digits still has a place elsewhere in the unit. In this grid, if 7 could also go in r1c3, the places for 3, 4 and 7 would spread over four cells and there would be no triple. The fifth is removing from the wrong cells. Clearing candidates inside the three cells of a naked triple, or, for a hidden triple, clearing the other digits left in its three cells (1, 6 and 8 in this grid) from the rest of the unit, wipes out correct answers. Each of these mistakes can be avoided by checking, before you remove anything, whether you counted the candidates of cells or the places of digits.
Reading this with the pair articles
A triple is the idea of a pair stretched to three cells, so whatever trips you up with pairs will trip you up with triples too. The two sides of pairs are covered in the two pair articles. Once they feel familiar, recounting the three-cell groups on this grid is good practice for switching between counting cells and counting digits. If your candidate marks have gaps, a triple can look valid when it is not. How to write candidates is covered in the notes article, and the definitions are in the glossary entries for naked triples and hidden triples.