Search for a tool
Circular Permutations

Tool for calculating the circular permutations of a set of elements, and for generating and visualizing the possible circular arrangements.

Results

Circular Permutations -

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 'Circular Permutations' tool for free! Thank you!

Circular Permutations

Circular Permutations Generator






Loading...
(if this message do not disappear, try to refresh this page)




See also: Permutations

Answers to Questions (FAQ)

What is a circular permutation? (Definition)

A circular permutation is an arrangement of $ n $ elements around a circle, in which there is no distinguished starting position. Two arrangements are considered identical if one can be obtained from the other by rotating the circle.

Example: ABC, BCA and CAB represent the same circular permutation

Mathematically, circular permutations correspond to equivalence classes of linear permutations under the action of the cyclic group $ C_n $

What is the difference between a (linear) permutation and a circular permutation?

A classical (linear) permutation has a starting position and an ending position. In a circular permutation, no starting position is distinguished.

To visualise this difference, imagine a circle: cutting the circle at different points produces several different linear lists, but only one circular arrangement.

How do you calculate the number of circular permutations of distinct elements?

For $ n $ distinct elements, the number of circular permutations is: $ (n-1)! $

Indeed, by fixing one element arbitrarily, the remaining $ n-1 $ elements can be permuted freely. There are therefore $ (n-1)! $ arrangements.

Example: For $ n = 4 $, there are $ 4! = 24 $ linear permutations, but only $ 3! = 6 $ circular permutations

How can all circular permutations be generated without duplicates?

For distinct elements, it is possible to choose a starting point for each rotation class.

1 - fix one element

2 - generate all permutations of the remaining $ n-1 $ elements using backtracking

3 - add the fixed element at the beginning of each generated permutation

Each resulting permutation then represents a different circular permutation, without duplicates.

What are some practical applications?

Circular permutations arise in many problems where no starting position is distinguished.

— seating guests around a round table

— arranging cyclic sequences or patterns

— counting necklaces of beads or coloured objects

— studying circular biological sequences (some bacterial genomes)

— combinatorial problems involving cycles or periodic configurations

Source code

dCode retains ownership of the "Circular Permutations" source code. Any algorithm for the "Circular Permutations" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Circular Permutations" 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 "Circular Permutations" or any other element are not public (except explicit open source licence). 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 "Circular Permutations" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

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/circular-permutations

In a scientific article or book, the recommended bibliographic citation is: Circular Permutations on dCode.fr [online website], retrieved on 2026-09-29, https://www.dcode.fr/circular-permutations

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 'Circular Permutations' tool for free! Thank you!


https://www.dcode.fr/circular-permutations
© 2026 dCode — The ultimate collection of tools for games, math, and puzzles.
â–˛  
Feedback