di-zhang-fdu/OlympiadExtended huggingface dataset:
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

<img_3144>



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

<img_3777>
Compute the number of 5-labels with 2 -signature $(12,21,12,21)$.

Solution:
The answer is 16 . We have a shape with two peaks and a valley in the middle. The 5 must go on one of the two peaks, so we place it on the first peak. By the shape's symmetry, we will double our answer at the end to account for the 5 -labels where the 5 is on the other peak.

<img_3879>

The 4 can go to the left of the 5 or at the other peak. In the first case, shown below left, the 3 must go at the other peak and the 1 and 2 can go in either order. In the latter case, shown below right, the 1,2 , and 3 can go in any of 3 ! arrangements.
<img_3481>



So there are $2 !+3 !=8$ possibilities. In all, there are 165 -labels (including the ones where the 5 is at the other peak).

Final answer: 16
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

![](https://cdn.mathpix.com/cropped/2023_12_21_793ce3b512229d118445g-1.jpg?height=236&width=442&top_left_y=2213&top_left_x=836)



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

![](https://cdn.mathpix.com/cropped/2023_12_21_54786ae6b210123098f4g-1.jpg?height=257&width=464&top_left_y=419&top_left_x=825)
Prove that the following signature is possible.
$(123,132,213)$,

Solution:
The signature is possible, because it is the 3 -signature of 12435

Final answer: 证明题，略
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

<img_3144>



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

<img_3777>
Prove that the following signature is possible.
$(123,132,213)$,

Solution:
The signature is possible, because it is the 3 -signature of 12435
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

<img_3144>



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

<img_3777>
Prove that the following signature is impossible:
$(321,312,213)$.

Solution:
The signature is impossible. Let a 5 -label be $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$. The second window of (ii) implies $a_{3}<a_{4}$, whereas the third window implies $a_{3}>a_{4}$, a contradiction.
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

![](https://cdn.mathpix.com/cropped/2023_12_21_793ce3b512229d118445g-1.jpg?height=236&width=442&top_left_y=2213&top_left_x=836)



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

![](https://cdn.mathpix.com/cropped/2023_12_21_54786ae6b210123098f4g-1.jpg?height=257&width=464&top_left_y=419&top_left_x=825)
Prove that the following signature is impossible:
$(321,312,213)$.

Solution:
The signature is impossible. Let a 5 -label be $a_{1}, a_{2}, a_{3}, a_{4}, a_{5}$. The second window of (ii) implies $a_{3}<a_{4}$, whereas the third window implies $a_{3}>a_{4}$, a contradiction.

Final answer: 证明题，略
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

![](https://cdn.mathpix.com/cropped/2023_12_21_793ce3b512229d118445g-1.jpg?height=236&width=442&top_left_y=2213&top_left_x=836)



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

![](https://cdn.mathpix.com/cropped/2023_12_21_54786ae6b210123098f4g-1.jpg?height=257&width=464&top_left_y=419&top_left_x=825)
If a randomly chosen $p$-signature is 575 times more likely of being impossible than possible, determine $p$ and $n$.

Solution:
The answer is $n=7, p=5$.

Let $P$ denote the probability that a randomly chosen $p$-signature is possible. We are



given that $1-P=575$, so $P=\frac{1}{576}$. We want to find $p$ and $n$ for which

$$
\begin{aligned}
\frac{p ! \cdot p^{n-p}}{(p !)^{n-p+1}} & =\frac{1}{576} \\
\frac{p^{n-p}}{(p !)^{n-p}} & =\frac{1}{576} \\
((p-1) !)^{n-p} & =576
\end{aligned}
$$

The only factorial that has 576 as an integer power is $4 !=\sqrt{576}$. Thus $p=5$ and $n-p=2 \Rightarrow n=7$.

Final answer: 7,5
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

<img_3144>



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

<img_3777>
If a randomly chosen $p$-signature is 575 times more likely of being impossible than possible, determine $p$ and $n$.

Solution:
The answer is $n=7, p=5$.

Let $P$ denote the probability that a randomly chosen $p$-signature is possible. We are



given that $1-P=575$, so $P=\frac{1}{576}$. We want to find $p$ and $n$ for which

$$
\begin{aligned}
\frac{p ! \cdot p^{n-p}}{(p !)^{n-p+1}} & =\frac{1}{576} \\
\frac{p^{n-p}}{(p !)^{n-p}} & =\frac{1}{576} \\
((p-1) !)^{n-p} & =576
\end{aligned}
$$

The only factorial that has 576 as an integer power is $4 !=\sqrt{576}$. Thus $p=5$ and $n-p=2 \Rightarrow n=7$.

Final answer: 7,5
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

![](https://cdn.mathpix.com/cropped/2023_12_21_793ce3b512229d118445g-1.jpg?height=236&width=442&top_left_y=2213&top_left_x=836)



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

![](https://cdn.mathpix.com/cropped/2023_12_21_54786ae6b210123098f4g-1.jpg?height=257&width=464&top_left_y=419&top_left_x=825)
Show that $(312,231,312,132)$ is not a unique 3 -signature.

Solution:
The $p$-signature is not unique because it equals both $S_{3}[625143]$ and $S_{3}[635142]$.

Final answer: 证明题，略
Subfield: Combinatorics


Question: An $\boldsymbol{n}$-label is a permutation of the numbers 1 through $n$. For example, $J=35214$ is a 5 -label and $K=132$ is a 3 -label. For a fixed positive integer $p$, where $p \leq n$, consider consecutive blocks of $p$ numbers in an $n$-label. For example, when $p=3$ and $L=263415$, the blocks are 263,634,341, and 415. We can associate to each of these blocks a $p$-label that corresponds to the relative order of the numbers in that block. For $L=263415$, we get the following:

$$
\underline{263} 415 \rightarrow 132 ; \quad 2 \underline{63415} \rightarrow 312 ; \quad 26 \underline{341} 5 \rightarrow 231 ; \quad 263 \underline{415} \rightarrow 213
$$

Moving from left to right in the $n$-label, there are $n-p+1$ such blocks, which means we obtain an $(n-p+1)$-tuple of $p$-labels. For $L=263415$, we get the 4 -tuple $(132,312,231,213)$. We will call this $(n-p+1)$-tuple the $\boldsymbol{p}$-signature of $L$ (or signature, if $p$ is clear from the context) and denote it by $S_{p}[L]$; the $p$-labels in the signature are called windows. For $L=263415$, the windows are $132,312,231$, and 213 , and we write

$$
S_{3}[263415]=(132,312,231,213)
$$

More generally, we will call any $(n-p+1)$-tuple of $p$-labels a $p$-signature, even if we do not know of an $n$-label to which it corresponds (and even if no such label exists). A signature that occurs for exactly one $n$-label is called unique, and a signature that doesn't occur for any $n$-labels is called impossible. A possible signature is one that occurs for at least one $n$-label.

In this power question, you will be asked to analyze some of the properties of labels and signatures.


We can associate a shape to a given 2-signature: a diagram of up and down steps that indicates the relative order of adjacent numbers. For example, the following shape corresponds to the 2-signature $(12,12,12,21,12,21)$ :

<img_3144>



A 7-label with this 2-signature corresponds to placing the numbers 1 through 7 at the nodes above so that numbers increase with each up step and decrease with each down step. The 7-label 2347165 is shown below:

<img_3777>
Show that $(312,231,312,132)$ is not a unique 3 -signature.

Solution:
The $p$-signature is not unique because it equals both $S_{3}[625143]$ and $S_{3}[635142]$.