When an option stays available after it is used, every position has the full set of choices. The count is the number of options multiplied by itself once per position: .
| Step | On 3-letter codes from A, B, C, D (letters may repeat) | |
|---|---|---|
| 1 | Check that order matters and repeats are allowed. ABA and AAB are different codes, and a letter may appear more than once. | ordered, repetition allowed |
| 2 | Count the options for each position. Every position takes any of the options, whatever came before. | options in each of positions |
| 3 | Multiply across the positions. One factor per position.Multiplication principle ↗ | |
| 4 | Compute the power. The base is the number of options; the exponent is the number of positions. | codes |