dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

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

Answers to Questions

How to generate arrangements with repetition?

Item arrangements with repetition consist in the list of all possible arrangements of elements (which can be repeated) in any order.

Example: X,Y,Z items be shuffled in 9 couples of 2 items: X,XX,YX,ZY,XY,YY,Z, Z,X, Z,Y, Z,Z. The order of the items do not matter.

Sets of \( n \) items are called tuples or n-uplets.

How to count arrangements with repetition?

Counting repeated arrangements of \( k \) items in a list of \( N \) is \( N^k \)

How to remove the limit when computing arrangements?

The calculations of arrangements increase exponentially and quickly require large computing servers, so the free generations are limited.

What is the cartesian product of N identical sets?

In mathematics, the Cartesian product of N identical sets is the name given the generation of arrangements with repetitions of 2 elements among N.

Example: {1, 2, 3} x {1, 2, 3} returns the set of 9 arrangements: (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)

Ask a new question

Source code

dCode retains ownership of the source code of the script Arrangements with Repetition online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. So if you need to download the online Arrangements with Repetition script for offline use, check contact page !