# 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://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

- [Three-Phase Short-Circuit Current Calculator (IEC 60909)](https://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.
- [Zero-Sum Game Solver (Saddle Point / Linear Programming)](https://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://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://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.
- [Partial Fraction Decomposer (Rational Functions)](https://elysiatools.com/en/tools/partial-fraction-decomposer): Decompose N(x)/D(x) into A/(x−r)^j + (Bx + C)/((x−α)² + β²) with long division for improper fractions and numeric residual verification.
- [PERT Network Analyzer (Expected Duration & Variance)](https://elysiatools.com/en/tools/pert-network-analyzer): Three-point PERT estimates: te and σ² per activity, critical path, expected project duration and variance, and normal completion probability for a target time.
- [M/M/c Multi-Server Queue Calculator](https://elysiatools.com/en/tools/queuing-theory-mmc): Steady-state M/M/c metrics with the Erlang-C formula: offered load, P0, Pw, Lq, L, W, Wq plus Little's-law cross-checks; unstable λ ≥ cμ inputs are rejected.
- [Second-Order ODE Solver (Characteristic Equation)](https://elysiatools.com/en/tools/second-order-ode-solver): Solve a·y'' + b·y' + c·y = f(x): characteristic roots, three homogeneous cases, undetermined coefficients with resonance, and C1/C2 from initial conditions.

## Samples

- [Copyright-Free FLAC Audio Samples](https://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://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://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://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Audio Encoding and Format Conversion Tools](https://elysiatools.com/en/hubs/audio-convert): Compare audio format conversion, bitrate changes, sample-rate conversion, codec swaps, and export tools in one hub for delivery and archive workflows.
- [Image Format Conversion and Animated Export Tools](https://elysiatools.com/en/hubs/image-convert): Compare image format converters for JPG, PNG, GIF, AVIF, WebP, TIFF, ICO, base64, and animation-friendly exports in one hub.
- [JSON Interchange and Format Translation Tools](https://elysiatools.com/en/hubs/json-convert): Compare JSON conversion tools for CSV, YAML, TOML, GraphQL, XML, Markdown, Excel, BSON, EDN, and related structured formats in one hub.
- [Color Space Conversion Tools for Web and Print](https://elysiatools.com/en/hubs/design-convert): Curated tools for web-to-print color space conversion in one hub.
