Freshmark
← Back to all writing

draft

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

Given a positive integer n(n≥3)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(n≥3)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,...,n−2}i\in\{1,2,...,n-2\}, there is always j∈{i+1,i+2,...,n}j\in\{i+1,i+2,...,n\} such that ∣aj−ai∣=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. a→n+1−aa\to n+1-a, will not affect conditions 1 and 2
  2. If 1,2,3,...,n−1,n1,2,3,...,n-1,n is feasible AnA_n, then n,n−1,n−2,...,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 3≤n≤n−23\le n\le n-2:

Note B={a1−2,a1−4,a1−6,...,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 parityn−1,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,an−1a_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,an−1a_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,n−1,n,(n≥4)a_1=\begin{cases} 1,3,(n=3),\\ 1,2,n-1,n,(n\ge4) \end{cases}

(2) Notice that ∣aj−ai∣=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 numbern−1,nis an even numberx=\begin{cases} n,n\text{is an odd number}\\ n-1,n\text{is an even number} \end{cases},y={n−1,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), an−1,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+12−12^{\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 2y2−12^{\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 n−2n-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=2Cn−2x+12−12x+12−12y2−1=Cn−2x−122x+y−12b_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: {b2k−1=C2k−3k−122k−2,b2k=C2k−3k−122k−1\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 b2kb2k−1=4\frac{b_{2k}}{b_{2k-1}}=4 b2k+1b2k=4−2k<4\frac{b_{2k+1}}{b_{2k}}=4-\frac{2}{k}\lt 4Therefore, 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,....

Another write-up of part (2) (added by Claude)

This section was added by Claude, an AI model made by Anthropic, after the author's solution. It is not written by the original author.

The condition ∣aj−ai∣=2|a_j-a_i|=2 only links numbers of the same parity, so treat the odd class {1,3,… }\{1,3,\dots\} and the even class {2,4,… }\{2,4,\dots\} separately.

Step 1: the last two terms are one odd and one even. The last-positioned number of each class has no later number of its class, so it cannot sit in the first n−2n-2 positions; it must be at position n−1n-1 or nn. There is one such number per class, so the last two terms are one odd and one even, and every other number needs a later same-class number differing by 2.

Step 2: read backwards, each class grows outward from a run. Read one class in reverse order of position, starting with its last number. Each newly read number vv sits at position at most n−2n-2, so v+2v+2 or v−2v-2 appears after it, i.e. has already been read. By induction the numbers read so far always form a run of consecutive members of the class (adjacent ones differ by 2), and each new number attaches at one end of the run.

Hence the first number of each class to appear is the class minimum or maximum. Since a1a_1 is the first number of its class,

  • for n≥4n\ge4, a1∈{1,2,n−1,n}a_1\in\{1,2,n-1,n\}, and all four occur, e.g. 1,2,…,n1,2,\dots,n, 2,1,3,4,…,n2,1,3,4,\dots,n and their images under a↦n+1−aa\mapsto n+1-a;
  • for n=3n=3 the even class is just {2}\{2\}, which is its own last number and must be in the last two positions, so a1∈{1,3}a_1\in\{1,3\}.

Step 2 also gives the count in (3): a class of mm numbers grows left or right at each step until only one choice is left, which gives 2m−12^{m-1} orders, matching the author's count (I checked the author's bnb_n formula by exhaustive search for n≤9n\le9).

Comments

Comments

Sign in to join the discussion. Email is verified only when you register.

Loading comments…

Checking your session…