Some sets are hard to count directly but easy to count from the outside. Count everything, count what you do not want, and subtract. "At least one" questions are the classic case, because their opposite, "none", is a single count.
| Step | On 4-digit PINs with at least one repeated digit | |
|---|---|---|
| 1 | Count all outcomes. Use the same rules as the question: here digits may repeat.Multiplication principle ↗ | |
| 2 | State the opposite condition. "At least one repeat" fails only when all digits are different. | all digits different |
| 3 | Count the opposite. Count it the same way as the total, ordered if the total is ordered. | |
| 4 | Subtract. The wanted outcomes are the rest of the total. |