DR.WANG Mathematics中文

BMO2 · 2022/23 · 2023-01-25 · Question 3

Counting & combinatorics · Arithmetic mean

Problem outline

For n≥3n\ge3, an nn-list is a tuple (a1,…,an)(a_1,\ldots,a_n) with every ai∈{1,…,n}a_i\in\{1,\ldots,n\}. For 1≤k<n1\le k<n, let MkM_k be the least positive value that can occur as the absolute difference between the averages of the first k+1k+1 and first kk entries. Call a list ideal when this difference equals MkM_k for every kk. Count the ideal nn-lists.

Show answer and methods 1 methods

Answer

There are 4(n−1)4(n-1) ideal lists.

Method 1 Determine the minimum jump and force the tail

Write Sk=a1+⋯+akS_k=a_1+\cdots+a_k. The change in average is (kak+1−Sk)/[k(k+1)](k a_{k+1}-S_k)/[k(k+1)]. Its numerator is an integer, so every non-zero change has size at least 1/[k(k+1)]1/[k(k+1)]. The list beginning (2,1,1,…)(2,1,1,\ldots) attains this value for every kk, hence Mk=1/[k(k+1)]M_k=1/[k(k+1)].

At k=1k=1, ideality says ∣a2−a1∣=1|a_2-a_1|=1, so the first two entries are consecutive. Write them as r,r+1r,r+1 in either order. At k=2k=2, the equation ∣2a3−(2r+1)∣=1|2a_3-(2r+1)|=1 shows that a3a_3 is either rr or r+1r+1.

Put c=a3c=a_3 and write a1+a2=2c+εa_1+a_2=2c+\varepsilon, where ε∈{−1,1}\varepsilon\in\{-1,1\}. Suppose a3=⋯=ak=ca_3=\cdots=a_k=c for some k≥3k\ge3, and set x=ak+1x=a_{k+1}. Then Sk=kc+εS_k=kc+\varepsilon, and ideality gives ∣k(x−c)−ε∣=1|k(x-c)-\varepsilon|=1.

Thus k(x−c)=ε±1k(x-c)=\varepsilon\pm1. The right side is one of −2,0,2-2,0,2; for k≥3k\ge3, its only possible multiple of kk is 00. Hence x=cx=c. Induction proves that all entries from the third onward equal the chosen value cc.

There are n−1n-1 choices for the consecutive pair {r,r+1}\{r,r+1\}, two possible orders for the first two entries, and two choices for whether the constant tail equals the smaller or larger member. Therefore the total is 4(n−1)4(n-1).

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)