Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Generating SnS_nSn​ with a fundamental transposition and a big cycle

CombinatoricsGroup theoryTheoretical computer science

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

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

I apologize in advance if this is too amateur, this is not really my area, but I'm very curious.

We have a permutation π∈Sn\pi \in S_nπ∈Sn​ and we want to represent it as a product of σ=(1  2)\sigma = (1\;2)σ=(12) and ρ=(1  2  …  n)\rho = (1\;2\;\ldots\; n)ρ=(12…n). What is the minimum number of transpositions needed to do it? For example the cost of representation of (2  3)∈S3(2\;3) \in S_3(23)∈S3​ as (1  2  3)−1(1  2)(1  2  3)(1\;2\;3)^{-1} (1\;2) (1\;2\;3)(123)−1(12)(123) is 111. Is this problem well-known?

I've experimented with it and I have the following algorithm that works correctly for all permutations with n≤10n \le 10n≤10 and for a decent amount of random bigger permutations (with n≤30n \le 30n≤30) but I have no clue why it does.

This problem could be reduced to the following: represent π\piπ as the product of the least amount of transpositions (1  2),(2  3),…,(n−1  n),(n  1)(1\;2), (2\;3), \ldots, (n-1\;n),(n\;1)(12),(23),…,(n−1n),(n1) as possible. The answer to the initial problem is minimum of the lengths of shortest representations of ⟨ρ⟩π∪π⟨ρ⟩\langle \rho \rangle \pi \cup \pi \langle \rho \rangle⟨ρ⟩π∪π⟨ρ⟩.

Without the transposition (n  1)(n\;1)(n1), it'd be trivial bubble sort problem. Each element of the set {1,…,n}\{1,\ldots,n\}{1,…,n} has a trajectory with respect to a representation as a product of these transpositions i.e. if π=α1⋅…⋅αk\pi = \alpha_1 \cdot \ldots \cdot \alpha_kπ=α1​⋅…⋅αk​ then the trajectory of iii is αk(i),αk−1αk(i),…,π(i)\alpha_k(i), \alpha_{k-1}\alpha_k(i), \ldots, \pi(i)αk​(i),αk−1​αk​(i),…,π(i) For the bubble sort, the trajectory in the optimal representation is unique up to the repetitions, if π(i)<i\pi(i) < iπ(i)<i then it looks like i,…,i,i−1,…,i−1,i−2,…,i−2,…,π(i)…,π(i)i, \ldots, i, i-1, \ldots, i-1, i-2, \ldots, i-2, \ldots, \pi(i) \ldots, \pi(i)i,…,i,i−1,…,i−1,i−2,…,i−2,…,π(i)…,π(i).

With the transposition (n  1)(n\;1)(n1) the situation changes and there are two possibilities for the trajectory of each element: for i>π(i)i > \pi(i)i>π(i) the new option for trajectory is i,i+1,…,n,1,…,π(i)i, i+1, \ldots, n, 1, \ldots, \pi(i)i,i+1,…,n,1,…,π(i) (repetitions omitted). We say that i0i_0i0​ and j0j_0j0​ form an inversion with respect to the trajectories a1,…,aka_1, \ldots, a_ka1​,…,ak​ (the trajectory of i0i_0i0​) and b1,…,bmb_1, \ldots, b_mb1​,…,bm​ (the trajectory of j0j_0j0​) iff for every sequence (x1,y1),…,(xm+k−2,ym+k−2)∈[k]×[m](x_1, y_1), \ldots, (x_{m+k-2}, y_{m+k-2}) \in [k] \times [m](x1​,y1​),…,(xm+k−2​,ym+k−2​)∈[k]×[m] such that (xi+1,yi+1)∈{(xi+1,yi),(xi,yi+1)}(x_{i+1}, y_{i+1}) \in \{(x_i+1,y_i), (x_i, y_i+1)\}(xi+1​,yi+1​)∈{(xi​+1,yi​),(xi​,yi​+1)} for each i∈{1,…,m+k−3}i \in \{1, \ldots, m+k-3\}i∈{1,…,m+k−3}, x1=y1=1x_1 = y_1 = 1x1​=y1​=1, xm+k−2=k;  ym+k−2=mx_{m+k-2} = k;\;y_{m+k-2}=mxm+k−2​=k;ym+k−2​=m there exists i∈[m+k−3]i \in [m+k-3]i∈[m+k−3] such that axi=byia_{x_i} = b_{y_i}axi​​=byi​​ or axi+1=byi+1a_{x_{i+1}} = b_{y_{i+1}}axi+1​​=byi+1​​ or axi=byi+1∧axi+1=byia_{x_i} = b_{y_{i+1}} \land a_{x_{i+1}} = b_{y_i}axi​​=byi+1​​∧axi+1​​=byi​​ i.e. it's not possible to move i0i_0i0​ and j0j_0j0​ along their trajectories such that they never swap. Therefore if we fix one of the options for each element in {1,…,n}\{1,\ldots,n\}{1,…,n} then the number of transpositions needed to represent π\piπ with fixed trajectories equals to the number of inversions with respect to the trajectories.

The algorithm. Fix s∈{0,…,n−1}s \in \{0, \ldots, n-1\}s∈{0,…,n−1} and consider a permutation σ=(1  2  …  n)sπ\sigma = (1\;2\;\ldots\;n)^s \piσ=(12…n)sπ. For each i∈[n]i \in [n]i∈[n] select the trajectory involving (1  n)(1\;n)(1n) if ∣i−σ(i)∣>n2|i - \sigma(i)| > {n \over 2}∣i−σ(i)∣>2n​ and select the standard trajectory otherwise. For each sss calculate the number of inversions with respect to selected trajectories and print the minimum of these values.

Statement and context adapted from MathOverflow · Artur Riazanov

CC BY-SA 3.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : co.combinatorics · gr.group-theory · algorithms · permutations

Authors listed by the source : Artur Riazanov

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : January 8, 2018

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)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni