Advanced maths

Burnside orbit counting calculator for an explicit permutation action

Burnside’s lemma counts distinct colorings after identifying arrangements related by an explicitly generated action.

Your numbers

Zero-based one-line permutations.
Nonnegative counts summing to the position count.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Burnside’s lemma counts distinct colorings after identifying arrangements related by an explicitly generated action. This calculator uses a fixed inventory of distinguishable colors, computes the position cycles of each group element and counts compatible fixed colorings. It then verifies that the group-average count is an integer.

THE FORMULANumber of orbits=(1/|G|)Σ_(g in G) number of colorings fixed by g.

A worked example

Two positions swapped by the generator 1,0 and an inventory of one red and one blue have two labeled arrangements. The identity fixes both; the swap fixes neither. Burnside’s average is (2+0)/2=1 orbit. The two colors remain different even though positions are interchangeable.

Good to know

Permutation degree at most nine, generated group at most 5,000 elements and one to five color counts. The inventory must sum exactly to the number of positions. No arbitrary color relabeling, incomplete action enumeration or duplicate unconstrained bracelet formula.

The supplied action determines equivalence

The permutation generators act on positions, while color identities remain fixed. Two arrangements are equivalent when some generated position permutation carries one into the other. Swapping the names of red and blue is not included unless a different model explicitly acts on colors as well as positions.

The action group must be generated completely before taking its average. Counting only the input generators would omit products and usually give the wrong orbit count. This page closes the permutations under composition within a strict size limit, retaining the identity and all distinct actions required by Burnside’s lemma.

Swapping two positions joins two fixed-inventory arrangements into one orbitRed | BlueBlue | RedIdentity fixes 2; swap fixes 0Burnside: (2 + 0) / 2 = 1Position action; distinct color names
Two positions swapped by the generator 1,0 and an inventory of one red and one blue have two labeled arrangements. The identity fixes both; the swap fixes neither. Burnside’s average is (2+0)/2=1 orbit. The two colors remain different even though positions are interchangeable.

The Bracelet coloring calculator with rotation and reflection covers the nearby task. Existing necklace/bracelet tools assume fixed cycle/dihedral actions and unrestricted colorings; supplied actions/inventories add a different task.

A fixed coloring is constant on each cycle

A coloring fixed by a permutation must assign one color to every position in each cycle of that permutation. A cycle of length three therefore consumes three units of whichever color it receives. The fixed-coloring count depends on the whole cycle-length list, not merely the number of fixed individual positions.

Dynamic programming distributes cycle lengths among the selected color inventories. A distribution is valid only when every count is used exactly. This handles restrictions such as one red and one blue in the two-position example, where the swap has no fixed coloring even though unrestricted monochromatic arrangements would be fixed.

Inventory constraints remain part of Burnside’s average

Burnside sums the fixed-coloring counts over every group element and divides by the group order. The result must be an integer, which is checked exactly. The average is not a probability and should not be rounded from a decimal value when exact combinatorial counts are available.

Independent verification enumerates all small inventory colorings, groups them into actual orbits and compares their number with the fixed-point average. The custom-action and inventory inputs distinguish this page from an unrestricted necklace or bracelet formula. Oversized generated actions or incompatible inventories are rejected rather than counted under an assumed standard symmetry group.

Specify the action before deciding which colorings are equivalent

The permutation generators act on positions, and their complete closure defines the allowed equivalences. Colors remain distinct. If red and blue are interchanged, that is not an allowed symmetry unless a separate color action has explicitly been included in a different model. The inventory fixes exactly how many positions use each color.

Burnside’s lemma averages the number of colorings fixed by each group element. It does not divide the raw coloring count by group order blindly, because some colorings have nontrivial stabilizers and therefore smaller orbits. Fixed-coloring counts correct for those unequal orbit sizes.

Count four positions with two red and two blue

Use the cyclic rotation generator 1,2,3,0 and inventory 2,2. The identity fixes all six labeled arrangements, since C(4,2)=6. A quarter-turn has a single four-cycle and fixes none with that inventory; the three-quarter-turn also fixes none. The half-turn has two two-cycles, which can be colored red and blue in two ways.

The average is (6+0+2+0)/4=2 orbits. Representatives can be understood as two adjacent red positions versus alternating red positions. Their orbit sizes differ, which is why the naive quotient 6/4 is not even an integer. Adding a reflection generator would define a larger action, so it must be justified by the intended equivalence.

Understand the cycle-inventory dynamic program

A coloring fixed by a permutation must be constant on each of its cycles. A cycle of length ℓ therefore consumes ℓ units from one color’s inventory. The algorithm allocates each cycle to a color without exceeding the required counts, then counts allocations that use every count exactly.

For a two-cycle and inventory one red plus one blue, no fixed coloring exists: the cycle cannot be partly red and partly blue while remaining invariant. Multiple cycles of equal length are still distinct position cycles, so their possible assignments must be counted with the correct multiplicity. The fixed-count table exposes these per-permutation contributions.

Distinguish inventory constraints from unrestricted coloring

With q colors and no inventory constraint, a permutation with c cycles fixes q^c colorings. That shortcut does not apply when exact color counts are prescribed. The calculator uses the inventory-aware count, not a generic necklace formula pasted onto an arbitrary action.

The inventory must sum to the degree of the permutations. Generators must be full valid one-line permutations on the same positions. Closure beyond 5,000 elements is rejected, not approximated from the listed generators alone. When comparing another orbit count, match rotations, reflections, position labels and whether colors may be renamed before concluding that one calculation is wrong.

A few questions, answered

Are colors themselves interchangeable?

No. Only the supplied position permutations act; color names remain distinct.

Why generate the whole action group?

Burnside averages over all group elements, not merely the listed generators.

Why not divide the number of labeled colorings by group order?

Orbit sizes can differ when some colorings have stabilizers. Burnside averages fixed-coloring counts to account for that.

Does the calculator consider red and blue interchangeable?

No. It acts on positions and preserves distinct color names and the specified inventory.

Find your calculator

Start typing to explore the library.