Search for a tool
Combinations with Repetition

Tool to generate combinations with repetitions. In Mathematics, a combination with repetitions is a combinations of items which can be repeated.

Results

Combinations with Repetition -

Tag(s) : Combinatorics

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Combinations with Repetition' tool for free! Thank you!

Combinations with Repetition

Combinations with Repetitions Generator






Counting Combinations with Repetitions



Answers to Questions (FAQ)

How to generate combinations with repetition?

Item combinations with repetition consist in generating the list of all possible combinations with elements that can be repeated.

Example: A,B,C items are shuffled in 6 couples of 2 items: A,A A,B A,C B,B B,C, C,C. Without repetition, there would be only 3 couples A,B, A,C et B,C.

The sets of n elements are called tuples: {1,2} or {1,2,3} are tuples.

How to count combinations with repetition?

Counting repeated combinations of k items (sometimes called k-combination) in a list of N is noted $ \Gamma_n^k $ and $$ \Gamma_n^k = {n+k-1 \choose k} = \frac{(n+k-1)!}{k! (n-1)!} $$

The number of combinations with repeats of $ k $ items among $ N $ is equal to the number of combinations without repeats of $ k $ items among $ N + k - 1 $.

How to remove the limit when computing combinations?

The calculation of the combinations generates an exponential number of values and the generator requires large calculation power on servers, these generations have therefore a cost (ask for a quote).

Source code

dCode retains ownership of the "Combinations with Repetition" source code. Any algorithm for the "Combinations with Repetition" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Combinations with Repetition" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Combinations with Repetition" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Combinations with Repetition" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/combinations-with-repetitions
In a scientific article or book, the recommended bibliographic citation is: Combinations with Repetition on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/combinations-with-repetitions

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Combinations with Repetition' tool for free! Thank you!


https://www.dcode.fr/combinations-with-repetitions
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback