benchmarks.wiki / Public workspace

CritPt / Challenge_50_main / Let S_(n) be the permutation group of order n, where n is a positive…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

code template

Code

def answer():
    r"""
    Return the number of configurations at time $t=3$

    Inputs
    ----------
    None

    Outputs
    ----------
    a40_3: integer, the number of configurations at time $t=3$, $ a_{40}(3) $
    """

    # ------------------ FILL IN YOUR RESULTS BELOW ------------------
    a40_3 = ...
    # ---------------------------------------------------------------

    return a40_3

problem description

# Problem setup: Let SnS_n be the permutation group of order nn, where nn is a positive integer. Consider the following splitting and merging events: 1. At t=0 t = 0 , there is one permutation w0=(123n)Sn w_0 = (123 \cdots n) \in S_n. 2. At t=1 t = 1 , w0 w_0 splits into w1w2 w_1 w_2 . 3. At t=2 t = 2 , first w1 w_1 splits into w3w4 w_3 w_{4-} , and w2 w_2 splits into w4+w5 w_{4+} w_5 . Then w4± w_{4\pm} merge into w4=w4w4+ w_4 = w_{4-} w_{4+} . 4. At t=3 t = 3 , the first splitting event is \begin{equation} w_3 = w_6 w_{7-}, \quad w_4 = w_{7+} w_{8-}, \quad w_5 = w_{8+} w_{9-}, \end{equation} which is followed by the merging event \begin{equation} w_7 = w_{7-} w_{7+}, \quad w_8 = w_{8-} w_{8+}. \end{equation} 5. This process continues. All the ww's are permutations in SnS_n. The pattern is such that at the boundary the permutation just splits, but in the middle the neighboring permutations labeled with - and + + will merge. Thus, one will end up with one more permutation each time. Suppose all of these splittings are minimal decompositions defined as follows: Let d(g) d(g) be the minimal number of transpositions in g g . g=g1g2 g = g_1 g_2 is a minimal decomposition when the total minimal number of transpositions does not change, i.e., \begin{equation} d(g) = d(g_1) + d(g_2). \end{equation} This holds for any product decomposition in this problem. Let the number of configurations at time t t be an(t) a_n(t) . # Main problem: Compute a40(3) a_{40}(3) . Note that there may be multiple configurations that lead to the same w5w_5 , w6 w_6 , w7 w_7 and w8w_8 at t=3t = 3. You should count all of them. Return your answer as an integer.
Plain-text mathematical notation (without MathML)
# Problem setup:
Let S_(n) be the permutation group of order n, where n is a positive integer. Consider the following splitting and merging events:
1. At t=0, there is one permutation w₀=(123⋯n)∈S_(n).
2. At t=1, w₀ splits into w₁w₂.
3. At t=2, first w₁ splits into w₃w_(4−), and w₂ splits into w_(4+)w₅. Then w_(4±) merge into w₄=w_(4−)w_(4+).
4. At t=3, the first splitting event is
  \begin{equation}
  w_3 = w_6 w_{7-}, \quad w_4 = w_{7+} w_{8-}, \quad w_5 = w_{8+} w_{9-},
  \end{equation}
 which is followed by the merging event
  \begin{equation}
  w_7 = w_{7-} w_{7+}, \quad w_8 = w_{8-} w_{8+}.
  \end{equation}
5. This process continues.

All the w's are permutations in S_(n). The pattern is such that at the boundary the permutation just splits, but in the middle the neighboring permutations labeled with − and + will merge. Thus, one will end up with one more permutation each time.

Suppose all of these splittings are minimal decompositions defined as follows: Let d(g) be the minimal number of transpositions in g. g=g₁g₂ is a minimal decomposition when the total minimal number of transpositions does not change, i.e.,
\begin{equation}
d(g) = d(g_1) + d(g_2).
\end{equation}
This holds for any product decomposition in this problem.

Let the number of configurations at time t be a_(n)(t).

# Main problem:

Compute a₄₀(3). Note that there may be multiple configurations that lead to the same w₅, w₆, w₇ and w₈ at t=3. You should count all of them. Return your answer as an integer.
Original LaTeX notation
# Problem setup:
Let $S_n $ be the permutation group of order $n$, where $n$ is a positive integer. Consider the following splitting and merging events:
1. At $ t = 0 $, there is one permutation $ w_0 = (123 \cdots n) \in S_n$.
2. At $ t = 1 $, $ w_0 $ splits into $ w_1 w_2 $.
3. At $ t = 2 $, first $ w_1 $ splits into $ w_3 w_{4-} $, and $ w_2 $ splits into $ w_{4+} w_5 $. Then $ w_{4\pm} $ merge into $ w_4 = w_{4-} w_{4+} $.
4. At $ t = 3 $, the first splitting event is
  \begin{equation}
  w_3 = w_6 w_{7-}, \quad w_4 = w_{7+} w_{8-}, \quad w_5 = w_{8+} w_{9-},
  \end{equation}
 which is followed by the merging event
  \begin{equation}
  w_7 = w_{7-} w_{7+}, \quad w_8 = w_{8-} w_{8+}.
  \end{equation}
5. This process continues.

All the $w$'s are permutations in $S_n$. The pattern is such that at the boundary the permutation just splits, but in the middle the neighboring permutations labeled with $ - $ and $ + $ will merge. Thus, one will end up with one more permutation each time.

Suppose all of these splittings are minimal decompositions defined as follows: Let $ d(g) $ be the minimal number of transpositions in $ g $. $ g = g_1 g_2 $ is a minimal decomposition when the total minimal number of transpositions does not change, i.e.,
\begin{equation}
d(g) = d(g_1) + d(g_2).
\end{equation}
This holds for any product decomposition in this problem.

Let the number of configurations at time $ t $ be $ a_n(t) $.

# Main problem:

Compute $ a_{40}(3) $. Note that there may be multiple configurations that lead to the same $w_5 $, $ w_6 $, $ w_7$ and $w_8$ at $t = 3$. You should count all of them. Return your answer as an integer.

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import