A329398 · Number of compositions of n with uniform Lyndon factorization and uniform co-Lyndon factorization.
Imported on
This entry contains a conjecture recorded in the OEIS. Its status has not been independently checked across the literature.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem statement
Conjecture: Also the number of compositions of n that are either weakly increasing or weakly decreasing. Hence a(n) = 2 * A000041(n) - A000005(n). - Gus Wiseman, Mar 05 2020
From Benjamin Schippers, Sep 18 2026: Theorem: a composition has a uniform Lyndon factorization and a uniform co-Lyndon factorization if and only if it is weakly increasing or weakly decreasing. This proves Wiseman's conjecture above. Proof. Write w for the composition. Recall that a Lyndon word l satisfies l[1] = min(l), and that if |l| >= 2 then l[1] < l[|l|] (otherwise the one-letter suffix would be a proper prefix of l and hence smaller than l). The mirror statements hold for co-Lyndon words: r[1] = max(r), and r[1] > r[|r|] when |r| >= 2. Suppose the Lyndon factorization of w has all factors of length d and the co-Lyndon factorization has all factors of length e, and suppose d >= 2 and e >= 2. The first Lyndon factor is w[1..d], so w[1] < w[d]; the first co-Lyndon factor is w[1..e], so w[1] > w[e]. If d = e these contradict. If d < e then w[d] lies inside the first co-Lyndon factor, so w[d] <= w[1], contradicting w[1] < w[d]. If d > e then w[e] lies inside the first Lyndon factor, so w[1] <= w[e], contradicting w[1] > w[e]. Hence min(d,e) = 1. If d = 1 the Lyndon factorization is into single letters, whose defining nonincreasing order reads w[1] >= w[2] >= ...: w is weakly decreasing. If e = 1 the mirror argument gives w weakly increasing. Conversely let w be weakly increasing. If w is constant both factorizations are into single letters. Otherwise w is Lyndon: for a proper suffix s = w[i+1..], each s[j] = w[i+j] >= w[j], and s is not a prefix of w (that would force w constant), so w < s at the first strict inequality; then the Lyndon factorization is the single factor w and the co-Lyndon factorization is into single letters. Mirror for weakly decreasing. QED The corollary follows by inclusion-exclusion: weakly increasing compositions of n are in bijection with the partitions of n, likewise weakly decreasing, and a composition that is both is constant, one for each divisor of n, giving p(n) + p(n) - d(n).
Definitions and context
Number of compositions of n with uniform Lyndon factorization and uniform co-Lyndon factorization.
First recorded terms: 1,2,4,7,12,18,28,40,57,80,110,148,200,266,348,457,592,764,978,1248,1580,2000,2508,3142,3913,4868,6016,7430,9128,11200,13682,16692,20282,24616,29762,35945,43272,52026,62366,74668,89164,106340,126520,150344,178262,211112
Example from the source
The a(1) = 1 through a(6) = 18 compositions:
(1) (2) (3) (4) (5) (6)
(11) (12) (13) (14) (15)
(21) (22) (23) (24)
(111) (31) (32) (33)
(112) (41) (42)
(211) (113) (51)
(1111) (122) (114)
(221) (123)
(311) (222)
(1112) (321)
(2111) (411)
(11111) (1113)
(1122)
(2211)
(3111)
(11112)
(21111)
(111111)
Statement and context adapted from OEIS · Gus Wiseman, Nov 13 2019
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
Sources and original status
- OEIS Status in source : conjecture recorded in OEIS
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)