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.
2026-04-22 16:34:20.1776875660
Find the number of $n$-length Lyndon words on alphabet $\{0,1\}$ with $k$ blocks of 0's.
170 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 COMBINATORICS-ON-WORDS
- Confusion on "Lyndon Words, Free Algebras, and Shuffles"
- Decomposition into Lyndon Words
- Counting particular odd-length strings over a two letter alphabet.
- Find the number of distinct line ups such that A,B,C are not adjacent?
- Formula to calculate possible combination of words in a 3x3 crossword grid
- If I have a certain word, how can I find the lowest number of characters that must remain in their original spots if I permute it?
- What problem in combinatorics-on-words could this be a formula for: $\frac{2^i i}{2}$?
- Insertion and deletion of cubed words $w^3$
- Sum over binary words of length $k$.
- Limit of set of finite words stable with prefix
Related Questions in LYNDON-WORDS
- Decomposition into Lyndon Words
- Number of Lyndon words of 4 alphabets, One alphabet labeled, the other 3 unlabelled.
- Counting binary Lyndon words with fixed degree in one letter
- Is a formula for the *number* of Lyndon words of a fixed length over a given number of generators known?
- Counting Lyndon words with no adjacent character repeats
- Correspondence between $k$-ary Lyndon words and $(k-1)$-ary Lyndon words without repetitions
- Primitive binary necklaces
- A property of Lyndon words.
- Generalization of the geometric series to multiple variables using Lyndon words
- Determinant of a sum of matrices using Lyndon words
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?
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}