Let $L(n,k)$ denote the number of Lyndon words of lenth $n$ on a binary alphabet $\{0,1\}$ where $k$ is the number of blocks of 0's in the word. For example, if we consider $n=5$, then 5-length Lyndon words are 00001, 00011, 00101, 00111, 01011, 01111. Among these six words, 00101 and 01011 have two blocks of 0's, so $L(5,2)=2$. Similarly, $L(5,1)=4$. Now I ask to myself is there any moebius inversion type formula so that I can write $L(n,k)$ as a sum of some known function? I was trying to apply the trick used in the solution of this question here, but could not get to the conclusion. Any comment or suggestion would be helpful.
2025-01-13 17:24:54.1736789094
Find the number of $n$-length Lyndon words on alphabet $\{0,1\}$ with $k$ blocks of 0's.
163 Views Asked by anumosh https://math.techqa.club/user/anumosh/detail At
1
There are 1 best solutions below
Related Questions in COMBINATORICS
- How many different games are there in bridge?
- Discrete mathematics, sets, increasing functions
- Number of necklaces of 16 beads with 8 red beads, 4 green beads and 4 yellow beads
- Logic & Reasoning Question
- Delannoy Paths and Pell Sequence Relation
- Combinatorics Problem - Clients using two seperate services
- There are few boxes labelled with $1,2,4,5,7,8,9$ respectively. How many ways to choose $5$ boxes and arranges the boxes in a row.
- Confused by book's given solution to basic combinatorial problem
- How many ways to write a number $n$ as the product of natural numbers $\geq 2$?
- Confused about how to solve basic combinatorial problem
Related Questions in COMBINATORICS-ON-WORDS
- Generating function for the set of $w$-free words.
- How many binary sequences are there which have given numbers of substrings 00, 01, 10, 11?
- When will a string have a repeating substring?
- Permutations- How many three letter words can you produce from the letters BALLSY?
- How many binary strings of length $n$ with no two adjacent 1's and four more 0's than 1's?
- Combinatorics Name Generating
- "L-normal" finite strings?
- How can we have a circular sequence of $0$s and $1$s of length $d$ that are not periodic?
- Does $gcd(p,q)$ a period in string, where $p$ and $q$ are periods?
- Probability of a repeated substring in a randomly selected string
Related Questions in LYNDON-WORDS
- Is a formula for the *number* of Lyndon words of a fixed length over a given number of generators known?
- Find the number of $n$-length Lyndon words on alphabet $\{0,1\}$ with $k$ blocks of 0's.
- Counting Lyndon words with no adjacent character repeats
- Correspondence between $k$-ary Lyndon words and $(k-1)$-ary Lyndon words without repetitions
- Number of Lyndon words of 4 alphabets, One alphabet labeled, the other 3 unlabelled.
- Counting binary Lyndon words with fixed degree in one letter
- Generalization of the geometric series to multiple variables using Lyndon words
- Determinant of a sum of matrices using Lyndon words
- Lyndon words over the binary alphabet that begin with "00"
- Algorithm for getting all 2D necklaces
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Refuting the Anti-Cantor Cranks
- Find $E[XY|Y+Z=1 ]$
- 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?
- What are the Implications of having VΩ as a model for a theory?
- How do we know that the number $1$ is not equal to the number $-1$?
- Defining a Galois Field based on primitive element versus polynomial?
- Is computer science a branch of mathematics?
- Can't find the relationship between two columns of numbers. Please Help
- 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
- A community project: prove (or disprove) that $\sum_{n\geq 1}\frac{\sin(2^n)}{n}$ is convergent
- Alternative way of expressing a quantied statement with "Some"
Popular # Hahtags
real-analysis
calculus
linear-algebra
probability
abstract-algebra
integration
sequences-and-series
combinatorics
general-topology
matrices
functional-analysis
complex-analysis
geometry
group-theory
algebra-precalculus
probability-theory
ordinary-differential-equations
limits
analysis
number-theory
measure-theory
elementary-number-theory
statistics
multivariable-calculus
functions
derivatives
discrete-mathematics
differential-geometry
inequality
trigonometry
Popular Questions
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- 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)$?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- How to find mean and median from histogram
- Difference between "≈", "≃", and "≅"
- Easy way of memorizing values of sine, cosine, and tangent
- How to calculate the intersection of two planes?
- What does "∈" mean?
- If you roll a fair six sided die twice, what's the probability that you get the same number both times?
- Probability of getting exactly 2 heads in 3 coins tossed with order not important?
- Fourier transform for dummies
- Limit of $(1+ x/n)^n$ when $n$ tends to infinity
The binary Lyndon words of length $n$ are in bijection with the aperiodic binary necklaces of length $n$, and counting them by inclusion–exclusion on the lattice of divisors of $n$ yields the count
$$ \frac1n\sum_{d\mid n}\mu\left(\frac nd\right)2^d $$
given in the linked question. Here $2^d$ counts the binary necklaces with period $d$. So we need to count the binary necklaces with period $d$ that have $k$ blocks of $0$s (and thus also $k$ blocks of $1$s). Since a period $d$ repeats $\frac nd$ times, such necklaces only exist when $\frac nd\mid k$, so we only need to consider divisors of $\gcd(n,k)$ for the repetition count $\frac nd$. Let’s swap $d$ and $\frac nd$ in the expression above to make it easier to replace $\frac nd$:
$$ \frac1n\sum_{s\mid n}\mu(s)2^\frac ns\;. $$
So we need
$$ \frac1n\sum_{s\mid\gcd(n,k)}\mu(s)a_\frac ns\;, $$
where $a_\frac ns$ is the number of necklaces with period $\frac ns$ and $k$ blocks of $0$s.
It’s easier to consider the boundaries between blocks instead of the blocks. Fix some stretch of $\frac ns$ boundaries between digits as a fundamental period. Since it’s repeated $s$ times, this fundamental period contains $\frac ks$ switches from $0$ to $1$ and $\frac ks$ switches from $1$ to $0$. We can have either type of switch first, for a factor of $2$, and then the type of the remaining switches is determined. The $2\frac ks$ switches can be freely selected from the $\frac ns$ possible boundaries in the fundamental period, so as they can alternate in two ways, there are $2\binom{\frac ns}{2\frac ks}$ ways to select them. This yields a count of
$$ L(n,k)=\frac2n\sum_{s\mid\gcd(n,k)}\mu(s)\binom{\frac ns}{2\frac ks}\;. $$
In your example with $n=5$ and $k=2$, we have $r=\gcd(5,2)=1$, so we only get a single term:
$$ L(5,2)=\frac25\mu(1)\binom{\frac51}{2\cdot\frac21}=\frac25\cdot5=2\;, $$
in agreement with your count. Since that turned out not to be such an interesting example, let’s calculate $L(6,2)$:
\begin{eqnarray} L(6,2) &=& \frac26\sum_{s\mid2}\mu(s)\binom{\frac6s}{\frac4s} \\ &=& \frac13\left(\binom64-\binom32\right) \\ &=& \frac13(15-3) \\ &=& 4\;, \end{eqnarray}
and indeed there are $4$ binary Lyndon words of length $6$ with $2$ blocks of $0$s, namely $000101$, $010111$, $001101$ and $001011$. As a further check, let’s calculate $L(4,2)$:
\begin{eqnarray} L(4,2) &=& \frac24\sum_{s\mid2}\mu(s)\binom{\frac4s}{\frac4s} \\ &=& \frac12\left(\binom44-\binom22\right) \\ &=& 0\;, \end{eqnarray}
and indeed there are no binary Lyndon words of length $4$ with $2$ blocks of $0$s, as the only candidate word is periodic.
Here’s a table of the first few values; note the symmetry when $n$ is a multiple of $4$:
\begin{array}{c|cc} n\setminus k&1&2&3&4&5&6&7&8&9&10\\\hline 1\\ 2&1\\ 3&2\\ 4&3&0\\ 5&4&2\\ 6&5&4&0\\ 7&6&10&2\\ 8&7&16&7&0\\ 9&8&28&18&2\\ 10&9&40&42&8&0\\ 11&10&60&84&30&2\\ 12&11&80&153&80&11&0\\ 13&12&110&264&198&44&2\\ 14&13&140&429&424&143&12&0\\ 15&14&182&666&858&400&60&2\\ 16&15&224&1001&1600&1001&224&15&0\\ 17&16&280&1456&2860&2288&728&80&2\\ 18&17&336&2061&4848&4862&2052&340&16&0\\ 19&18&408&2856&7956&9724&5304&1224&102&2\\ 20&19&480&3876&12576&18475&12576&3876&480&19&0\\ \end{array}