I've read that one can use the Polya enumeration theorem or the Burnside's lemma to count the number of necklaces using $n$ beads from $k$ colors. Can we then find a way to count the number of necklaces such that no adjacent beads are of the same color?
2026-03-25 14:25:39.1774448739
Counting necklace with no adjacent beads are of the same color
2.2k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in COMBINATORICS
- Using only the digits 2,3,9, how many six-digit numbers can be formed which are divisible by 6?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Name of Theorem for Coloring of $\{1, \dots, n\}$
- Hard combinatorial identity: $\sum_{l=0}^p(-1)^l\binom{2l}{l}\binom{k}{p-l}\binom{2k+2l-2p}{k+l-p}^{-1}=4^p\binom{k-1}{p}\binom{2k}{k}^{-1}$
- Algebraic step including finite sum and binomial coefficient
- nth letter of lexicographically ordered substrings
- Count of possible money splits
- Covering vector space over finite field by subspaces
- A certain partition of 28
- Counting argument proof or inductive proof of $F_1 {n \choose1}+...+F_n {n \choose n} = F_{2n}$ where $F_i$ are Fibonacci
Related Questions in PERMUTATIONS
- A weird automorphism
- List Conjugacy Classes in GAP?
- Permutation does not change if we multiply by left by another group element?
- Validating a solution to a combinatorics problem
- Selection of at least one vowel and one consonant
- How to get the missing brick of the proof $A \circ P_\sigma = P_\sigma \circ A$ using permutations?
- Probability of a candidate being selected for a job.
- $S_3$ action on the splitting field of $\mathbb{Q}[x]/(x^3 - x - 1)$
- Expected "overlap" between permutations of a multiset
- Selecting balls from infinite sample with certain conditions
Related Questions in NECKLACE-AND-BRACELETS
- How many number of bracelets of length $n$ with black-white beads?
- Representation of limit of products of the fixed necklaces of length n composed of a types of beads
- k-ary bracelets with conserved/fixed indexes
- unique necklace from 6 beads
- unique bracelets from 6 beads, where 1 bead is a fixed color
- Approximation of products of necklaces
- (Music) List of all possible "types of set" of 12 musical notes
- Rotation of necklaces
- Show COMBINATORIALLY the number of irreducible monic polynomials is the number of primitive necklaces
- k-aray necklaces with fixed/conserved positions
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
To solve this using Burnside we start with the cycle index of the cyclic group $Z(C_n)$ which is given by
$$Z(C_n) = \frac{1}{n} \sum_{d|n} \varphi(d) a_d^{n/d} = \frac{1}{n} \sum_{d|n} \varphi(n/d) a_{n/d}^d.$$
The next step is to determine how many proper colorings are fixed by a permutation with cycle structure $a_{n/d}^d.$ Now when $d=1$ all slots are on the same cycle so there cannot possibly be a proper coloring when $n\ge 2$ and we must record for later that this case yields a zero contribution. On the other hand when $d\ge 2$ the cycles partition the slots into adjacent segments of length $d$ where the slots on each segment are all situated on different cycles. (One cycle is mapped to the next by a rotation of $2\pi/n.$) Observe that by the cyclic symmetry every such segment is preceded and followed by another segment just like it. The segments are directed and the colorings on all segments are the same because the cycles are monochrome as required by Burnside. Therefore we may regard the segments as circular because the last slot of a segment is followed by a repeat of the color from the first slot of the segment. Hence the colorings fixed by a permutation of cycle structure $a_{n/d}^d$ are precisely the proper colorings of a cycle on $d$ nodes (no symmetries) given by the chromatic polynomial $P_d(t)$ at $t=k$ which is
$$P_d(k) = (k-1)^d + (-1)^d\times (k-1).$$
This produces zero when $d=1$ as pointed out earlier. We thus get the closed form
$$\bbox[5px,border:2px solid #00A000]{ \frac{1}{n} \sum_{d|n} \varphi(n/d) P_d(k).}$$
We get $k$ colorings when $n=1$ as a special case where we replace the zero value from the formula. This is open to discussion, we could also argue that a singleton is adjacent to itself and hence admits no proper colorings.
This material is not original and was sourced at mathoverflow.net.
Remark. The technique from the hint (AIME 2016) provided in the comments to the OP can be used to compute the chromatic polynomial that was used. We encode the fact that adjacent colors must be different in a generating function, as follows:
$$f(z) = \prod_{q=1}^d (z + z^2 + z^3 + \cdots + z^{k-1}) = (z + z^2 + z^3 + \cdots + z^{k-1})^d.$$
Here the colors are represented by residues modulo $k$ and the terms from the body of the product are the differences between adjacent colors and encode transition to the next color by adding a value between $1$ and $k-1$ to the current color. (We are not adding zero because then the color would stay the same). Only the terms that are multiples of $k$ contribute to the count as this precisely represents a return to the first color of the cycle.
With $\zeta_p = \exp(2\pi i p/k)$ a root of unity the number of difference schemes is given by
$$\frac{1}{k} \sum_{p=0}^{k-1} f(\zeta_p)$$
but note that we are free to choose the first color so we get
$$\sum_{p=0}^{k-1} f(\zeta_p).$$
Distinguishing between $p$ zero which yields $$(k-1)^d$$ and non-zero ($k-1$ values) where $z + z^2 + z^3 + \cdots + z^{k-1} = -1$
we obtain the answer
$$\bbox[5px,border:2px solid #00A000]{ (k-1)^d + (k-1)\times (-1)^d.}$$
There is some Perl code as well.
#! /usr/bin/perl -w # MAIN : { my $mx = shift || 10; my $k = shift || 2; my @res = ($k); for(my $n=2; $n <= $mx; $n++){ my %orbits; for(my $ind = 0; $ind < $k ** $n; $ind++){ my ($pos, $idx, @d); for(($pos, $idx) = (0, $ind); $pos < $n; $pos++){ my $digit = $idx % $k; push @d, $digit; $idx = ($idx-$digit) / $k; } for($pos=0; $pos < $n; $pos++){ last if $d[$pos] == $d[($pos+1) % $n]; } if($pos == $n){ my %orbit; for(my $shft = 0; $shft < $n; $shft++){ my $str = join('-', @d[$shft..$n-1], @d[0..$shft-1]); $orbit{$str} = 1; } my $orbstr = (sort(keys %orbit))[0]; $orbits{$orbstr} = 1; } } push @res, scalar(keys %orbits); } print join(', ', @res); print "\n"; 1; }The Perl script will produce e.g. the sequence for $k=5$ starting at $n=2:$
$$5, 10, 20, 70, 204, 700, 2340, 8230, 29140, \ldots$$
which matches the output from the closed form and points us to OEIS A106367 where we see that we have the right values.