# Permutation / Combination / Subset Generator (With Repeats)

Deduplicated, lexicographic permutations / combinations / subsets of up to 12 items with exact multiset counts; display capped at 200 entries.

> Canonical page: https://test.elysiatools.com/en/tools/combinatorial-generation

- **Category:** Math & Numbers

- **Keywords:** permutations, combinations, subsets, power set, multiset, repeated elements, combinatorics, next permutation, factorial, discrete math

## Overview

The Permutation, Combination, and Subset Generator calculates and enumerates unique lexicographic arrangements, selections, and sub-multisets for up to 12 items. It automatically deduplicates inputs containing repeated elements and provides exact mathematical counts alongside up to 200 generated entries.

## Inputs

- **Generation mode** (select)
- **Items (may repeat)** (text): 1–12 items separated by commas or spaces; duplicates like 'A, A, B' are supported and only distinct results are generated.
- **Size k (combinations only)** (number): How many items each combination holds; ignored in the permutations and subsets modes.
- **Decimal Places** (number)

## When to use

- You need to list every unique anagram or ordering from a set of characters or words containing duplicate elements.
- You want to find all distinct combinations of size k chosen from an inventory with repeated item types.
- You are exploring discrete math or power set problems and need to enumerate all unique sub-multisets including the empty set.

## How it works

- Enter between 1 and 12 items separated by commas or spaces, including duplicates if applicable.
- Select a generation mode: Permutations (all distinct full-length orderings), Combinations (distinct selections of size k), or Subsets (the full power set).
- Specify the selection size k if running in combinations mode.
- View the calculated multiset formula, exact total count, and the lexicographically ordered list of results capped at 200 entries.

## Use cases

- Discrete mathematics students verifying multiset permutation and combination formulas against enumerated sets.
- Game designers calculating distinct hand configurations or dice outcome orderings with repeated symbols.
- Software developers testing algorithmic test cases requiring deduplicated lexicographic permutations.

## Frequently asked questions

### How does the tool handle repeated elements?

It treats repeated elements as a multiset, using deduplication algorithms to ensure each permutation, combination, or subset appears only once.

### What is the maximum input size?

The generator accepts up to 12 items per run.

### Why is the displayed output limited to 200 entries?

The display is capped at 200 rows to maintain browser performance, but the calculated count always reflects the exact mathematical total.

### When is parameter k used?

Parameter k is required only for Combinations mode to define how many items to choose per group; it is ignored in Permutations and Subsets modes.

### Does subset generation include the empty set?

Yes, the subset mode generates the complete power set of the multiset, starting with the empty set (∅).

## Related tools

- [Sieve of Eratosthenes (Prime List Generator)](https://test.elysiatools.com/en/tools/sieve-of-eratosthenes): Enumerate primes up to 10⁷ (or within \[m, n\]) with the classic sieve; shows base primes, crossing-out operations, exact counts, and up to 200 primes.
- [Three-Phase Short-Circuit Current Calculator (IEC 60909)](https://test.elysiatools.com/en/tools/short-circuit-current-calculator): Estimate the three-phase symmetric short-circuit current using the IEC 60909 far-from-generator method: I"_k = c·U_n/(√3·|Z|) and i_p = κ·√2·I"_k with κ = 1.02 + 0.98·e^(−3R/X). Source impedance is the series sum of transformer and line R/X.
- [Carmichael Function λ(n) Calculator](https://test.elysiatools.com/en/tools/carmichael-function): Group exponent λ(n) from prime factorization with φ(n) comparison, primitive-root existence, Korselt's Carmichael-number detection, and optional sample-unit verification.
- [Chinese Remainder Theorem Solver (System of Congruences)](https://test.elysiatools.com/en/tools/chinese-remainder-theorem): Generalized pairwise-merge CRT for 2–20 congruences: coprime moduli give the product modulus, consistent non-coprime moduli give the lcm, inconsistent systems are rejected.
- [Euler Totient Function φ(n) Calculator](https://test.elysiatools.com/en/tools/euler-totient-function): Exact φ(n) from trial-division factorization (n ≤ 10¹²) with optional coprime listing and Euler's theorem recall.
- [Zero-Sum Game Solver (Saddle Point / Linear Programming)](https://test.elysiatools.com/en/tools/game-theory-zero-sum): Two-person zero-sum games: saddle-point test first, then mixed strategies from a single-phase simplex LP with dual shadow prices, verified by security-level checks.
- [Inverse Laplace Transform Calculator (Partial Fractions)](https://test.elysiatools.com/en/tools/inverse-laplace-calculator): Partial-fraction inverse Laplace transform for proper rational functions: root factorization (real + conjugate pairs), exact coefficient system, term-by-term inversion.
- [Laplace Transform Calculator (Table Lookup)](https://test.elysiatools.com/en/tools/laplace-transform-calculator): Table lookup of L{f(t)} for 14 standard pairs, with parameter substitution, region of convergence, derivation note, and optional numeric F(s₀) evaluation.

## Samples

- [Copyright-Free FLAC Audio Samples](https://test.elysiatools.com/en/samples/flac-samples): Lossless FLAC audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Copyright-Free WAV Audio Samples](https://test.elysiatools.com/en/samples/wav-samples): Uncompressed PCM WAV audio samples for testing and development, mirrored from MP3 set with nature sounds and meditation music
- [Web Image Processing Python Samples](https://test.elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
