If some items look the same, swapping them does not create a new arrangement. Count as if all items were different, , then divide by the swaps inside each group of identical items.
| Step | On the letters of BANANA | |
|---|---|---|
| 1 | Count all the items. Every letter counts, repeated or not. | letters |
| 2 | Group equal items and count each group. A letter that appears once is a group of size ; it contributes . | A: , N: , B: |
| 3 | Divide n! by the factorial of each group. Each group of size can be shuffled in ways without changing the word.Factorial ↗ | |
| 4 | Simplify. The quotient is always a whole number. | arrangements |