Freshmark
← Back to all writing

A New-Definition Sequence Problem from the 2025 Haidian Grade 11 Final

Given a positive integer n(n3)n(n\ge 3), if the sequence An:a1,a2,...,anA_n:a_1,a_2,...,a_n satisfies the following two properties at the same time, then the sequence AnA_n is called

Given a positive integer n(n3)n(n\ge 3), if the sequence An:a1,a2,...,anA_n:a_1,a_2,...,a_n satisfies the following two properties at the same time, then the sequence AnA_n is called the P(n)P(n) sequence:

  1. {a1,a2,..,an}={1,2,...,n}\{a_1,a_2,..,a_n\}=\{1,2,...,n\}
  2. For any i{1,2,...,n2}i\in\{1,2,...,n-2\}, there is always j{i+1,i+2,...,n}j\in\{i+1,i+2,...,n\} such that ajai=2|a_j-a_i|=2. Let the number of P(n)P(n) sequences be bnb_n

(1) Write two P(3)P(3) sequence A3A_3

(2) If AnA_n is the P(n)P(n) sequence, find the value of a1a_1;

(3) Find the maximum value of bn+1bn\frac{b_{n+1}}{b_n}.

(1)Easy to write: {1,2,3},{1,3,2},{3,1,2},{3,2,1}\{1,2,3\},\{1,3,2\},\{3,1,2\},\{3,2,1\} (2) From (1), we know that not all numbers can be used as a1a_1, and the middle number (2) will cause problems (|x-2|=2, x is out of range).

Enumeration is simple:

n=3, a1=1 or 3a_1=1\text{ or }3

Make a few simple observations:

  1. an+1aa\to n+1-a, will not affect conditions 1 and 2
  2. If 1,2,3,...,n1,n1,2,3,...,n-1,n is feasible AnA_n, then n,n1,n2,...,1n,n-1,n-2,...,1 is also feasible

Digging deeper into (1), we guess that if a1±2{1,2,3,...,n}a_1\pm 2\in\{1,2,3,...,n\}, a contradiction may be derived.

When 3nn23\le n\le n-2:

Note B={a12,a14,a16,...,t}B=\{a_1-2,a_1-4,a_1-6,...,t\}, where t={1,a1is an odd number2,a1is an even numbert=\begin{cases} 1, & a_1\text{is an odd number}\\ 2, & a_1\text{is an even number} \end{cases}

C={a1+2,a1+4,a1+6,...,s}C=\{a_1+2,a_1+4,a_1+6,...,s\}, where s={n,a1Same as n parityn1,a1different from n paritys=\begin{cases} n, & a_1\text{Same as n parity}\\ n-1, & a_1\text{different from n parity} \end{cases}

According to 2, a1a_1 can continuously generate items in B,CB,C, then the last two items of AnA_n must be numbers in B,CB,C, with the same parity as a1a_1.

Let's assume that an,an1a_n,a_{n-1} is an odd number, use the extreme principle, and consider that the last item in AnA_n is an even number. When pushing backward, a contradiction will appear.

If an,an1a_n,a_{n-1} is an even number, consider the last odd term in the same way and derive a contradiction.

To sum up, a1={1,3,(n=3),1,2,n1,n,(n4)a_1=\begin{cases} 1,3,(n=3),\\ 1,2,n-1,n,(n\ge4) \end{cases}

(2) Notice that ajai=2|a_j-a_i|=2 and ai,aja_i,a_j have the same parity, so the odd and even columns in AnA_n “do their own thing”.

Remember x={n,nis an odd numbern1,nis an even numberx=\begin{cases} n,n\text{is an odd number}\\ n-1,n\text{is an even number} \end{cases},y={n1,nis an odd numbern,nis an even numbery=\begin{cases} n-1,n\text{is an odd number}\\ n,n\text{is an even number} \end{cases}

According to (2), an1,ana_{n-1},a_{n} must be one odd and one even.

Consider the order in which the odd sequence {1,3,5,...,x}\{1,3,5,...,x\} (a total of x+12\frac{x+1}{2}) appears in AnA_n. In the same way as (2), the first appearance in AnA_n must be 1 or x

Next, the minimum or maximum value among the remaining numbers appears in sequence, in a total of 2x+1212^{\frac{x+1}{2}-1} order.

In the same way, the even sequence {2,4,6,...,y}\{2,4,6,...,y\} (a total of y2\frac{y}{2} numbers) appears in the sequence in a total of 2y212^{\frac{y}{2}-1}.

We then consider the absolute position of the odd column in AnA_n:

In the last two items of AnA_n, there is exactly one odd number, and the remaining odd numbers are in the first n2n-2 slots.

Select the absolute position of the odd-numbered column, and the absolute position of the even-numbered column is determined.

And because the internal relative positions of the odd and even columns have just been determined, according to the principle of step-by-step multiplication: bn=2Cn2x+1212x+1212y21=Cn2x122x+y12b_n=2C_{n-2}^{\frac{x+1}{2}-1}2^{\frac{x+1}{2}-1}2^{\frac{y}{2}-1}=C_{n-2}^{\frac{x-1}{2}}2^\frac{x+y-1}{2} Classify n according to parity: {b2k1=C2k3k122k2,b2k=C2k3k122k1\begin{cases} b_{2k-1}=C_{2k-3}^{k-1}2^{2k-2},\\ b_{2k}=C_{2k-3}^{k-1}2^{2k-1} \end{cases} Among them k=2,3,4,...k=2,3,4,...

It’s not difficult to calculate b2kb2k1=4\frac{b_{2k}}{b_{2k-1}}=4 b2k+1b2k=42k<4\frac{b_{2k+1}}{b_{2k}}=4-\frac{2}{k}\lt 4 Therefore, the maximum value of bn+1bn\frac{b_{n+1}}{b_n} is 4, which is obtained if and only if n=3,5,7,...n=3,5,7,....