Start with a worked example
Open the worked example for Combinations. The example starts with Items (comma-separated) = A,B,C,D, Items per combination = 2.
Combination Generator formula
Enumerates unordered subsets of size r; output is capped for browser safety.
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| Items (comma-separated) | Follow the input format above | A,B,C,D |
| Items per combination | Whole number, min 0, max 10 | 2 |
Worked example
The values listed in Inputs and units give A, B | A, C | A, D | B, C | B, D | C, D for Combinations.
- Combinations
- A, B | A, C | A, D | B, C | B, D | C, D
- Generated count
- 6
Results and assumptions
Change Items per combination from 2 to 3 and keep the other example inputs fixed. The updated answer is A, B, C | A, B, D | A, C, D | B, C, D (Combinations).
Fix an input or unexpected result
Items per combination is required. Enter items per combination using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.
