Skip to main content
added 2551 characters in body
Source Link
Stanley Yao Xiao
  • 26.9k
  • 7
  • 49
  • 143

Using your notation, one can work explicitly as follows. Let $s_A = \sum_{i \in A} |x_i - y_i|$ and $s_B = \sum_{i \in B} |x_i - y_i|$. Then

$$\displaystyle s_A - s_B = \sum_{i \in A} (x_i - y_i) - \sum_{i \in B} (y_i - x_i) = n - n = 0,$$

hence $s_A = s_B = s$. Note that $s \leq n$ (this cannot be improved by much in general: say $x_1 = n, x_i = 0$ for $i = 2, \cdots, n$ and $y_i = 1$ for $i = 1, \cdots, n$). Thus by your AM-GM argument one gets

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq s^n (n-x)^{x-n} x^{-x}$$

for $x = |A|$. The latter function can be optimized to give an upper bound of $(2s/n)^n$. This is slightly better than the bound given by Denis Serre, which takes the value $s = n$.

Edit: I believe the following almost solves the problem. Note that the problem is trivial if $x_i = y_i$ for some $i$, so we assume that this is not the case. Without loss of generality, we suppose $x_1 > y_1$ and let $1, \cdots, m_1$ be the longest consecutive string containing 1 which lies in $A$. Then by AM-GM, we have

$$\displaystyle \prod_{i=1}^{m_1} (x_i - y_i) \leq \left(\frac{\sum_{i=1}^{m_1} (x_i - y_i)}{m_1}\right)^{m_1}.$$

Now replace $x_i, 1 \leq i \leq m_1$ by $u_1 = m_1^{-1} \sum_{i=1}^{m_1} x_i$ and likewise replace $y_i$ with the average of the first $m_1$ $y_i$'s. Note that the new sequence still satisfies the condition of the original problem, but the product is now larger. We do the same thing for the string $m_1 + 1, \cdots, m_2$, the longest consecutive string in $B$ containing $m_1 + 1$. Having done so, we now obtain a new sequence as follows:

$$u^{(1)} = u_1 = u_2 = \cdots = u_{m_1}, u^{(2)} = u_{m_1 + 1} = \cdots = u_{m_2}, \cdots,$$ $$v^{(1)} = v_1 = v_2 = \cdots = v_{m_1}, v^{(2)} = v_{m_1 + 1} = \cdots = v_{m_2}, \cdots$$

with the property that the sets of indices $A,B$ remain the same. Now we glue together consecutive blocks as follows. Take the first two blocks and replace each $v_i$ by the average of $v_1, \cdots, v_{m_2}$. Thus, we have replaced the values $v^{(1)}, v^{(2)}$ by their average. Indeed, this continues to preserve the conditions of the problem but enlarging each $|u_i - v_i|$. Do so with each pair of subsequent consecutive blocks.

Now this part I am not sure how to write up properly, so I will just sketch the idea. One observes that for small $i$ the terms $x_i, y_i$ contribute disproportionately to the total sum (due to the monotonicity), so one wants to lower/narrow the left most blocks with large height; likewise the rightmost blocks with small height. Doing so one eventually concludes that the optimal configuration consists of just two blocks. Then our construction tells us that $y_1 = \cdots = y_n = 1$. Let $k = m_1$ (and $m_2 = n$). We can assume that $x_i = 0$ for $i > k$; otherwise the right blocks make the product smaller. Thus our construction yields that $x_1 = \cdots = x_k = n/k$. It then follows that our product is equal to

$$\displaystyle P(n,k) = \left(\frac{n}{k} - 1\right)^k.$$

The inequality $P(n,k) < e^{n/2}$ is equivalent to

$$\displaystyle \log\left(\frac{n}{k} - 1\right) < \frac{n}{2k}.$$

Put $s = n/k - 1$. We are then left to consider $\log(s) < (s+1)/2$. This inequality is immediately verified by calculus.

Using your notation, one can work explicitly as follows. Let $s_A = \sum_{i \in A} |x_i - y_i|$ and $s_B = \sum_{i \in B} |x_i - y_i|$. Then

$$\displaystyle s_A - s_B = \sum_{i \in A} (x_i - y_i) - \sum_{i \in B} (y_i - x_i) = n - n = 0,$$

hence $s_A = s_B = s$. Note that $s \leq n$ (this cannot be improved by much in general: say $x_1 = n, x_i = 0$ for $i = 2, \cdots, n$ and $y_i = 1$ for $i = 1, \cdots, n$). Thus by your AM-GM argument one gets

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq s^n (n-x)^{x-n} x^{-x}$$

for $x = |A|$. The latter function can be optimized to give an upper bound of $(2s/n)^n$. This is slightly better than the bound given by Denis Serre, which takes the value $s = n$.

Using your notation, one can work explicitly as follows. Let $s_A = \sum_{i \in A} |x_i - y_i|$ and $s_B = \sum_{i \in B} |x_i - y_i|$. Then

$$\displaystyle s_A - s_B = \sum_{i \in A} (x_i - y_i) - \sum_{i \in B} (y_i - x_i) = n - n = 0,$$

hence $s_A = s_B = s$. Note that $s \leq n$ (this cannot be improved by much in general: say $x_1 = n, x_i = 0$ for $i = 2, \cdots, n$ and $y_i = 1$ for $i = 1, \cdots, n$). Thus by your AM-GM argument one gets

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq s^n (n-x)^{x-n} x^{-x}$$

for $x = |A|$. The latter function can be optimized to give an upper bound of $(2s/n)^n$. This is slightly better than the bound given by Denis Serre, which takes the value $s = n$.

Edit: I believe the following almost solves the problem. Note that the problem is trivial if $x_i = y_i$ for some $i$, so we assume that this is not the case. Without loss of generality, we suppose $x_1 > y_1$ and let $1, \cdots, m_1$ be the longest consecutive string containing 1 which lies in $A$. Then by AM-GM, we have

$$\displaystyle \prod_{i=1}^{m_1} (x_i - y_i) \leq \left(\frac{\sum_{i=1}^{m_1} (x_i - y_i)}{m_1}\right)^{m_1}.$$

Now replace $x_i, 1 \leq i \leq m_1$ by $u_1 = m_1^{-1} \sum_{i=1}^{m_1} x_i$ and likewise replace $y_i$ with the average of the first $m_1$ $y_i$'s. Note that the new sequence still satisfies the condition of the original problem, but the product is now larger. We do the same thing for the string $m_1 + 1, \cdots, m_2$, the longest consecutive string in $B$ containing $m_1 + 1$. Having done so, we now obtain a new sequence as follows:

$$u^{(1)} = u_1 = u_2 = \cdots = u_{m_1}, u^{(2)} = u_{m_1 + 1} = \cdots = u_{m_2}, \cdots,$$ $$v^{(1)} = v_1 = v_2 = \cdots = v_{m_1}, v^{(2)} = v_{m_1 + 1} = \cdots = v_{m_2}, \cdots$$

with the property that the sets of indices $A,B$ remain the same. Now we glue together consecutive blocks as follows. Take the first two blocks and replace each $v_i$ by the average of $v_1, \cdots, v_{m_2}$. Thus, we have replaced the values $v^{(1)}, v^{(2)}$ by their average. Indeed, this continues to preserve the conditions of the problem but enlarging each $|u_i - v_i|$. Do so with each pair of subsequent consecutive blocks.

Now this part I am not sure how to write up properly, so I will just sketch the idea. One observes that for small $i$ the terms $x_i, y_i$ contribute disproportionately to the total sum (due to the monotonicity), so one wants to lower/narrow the left most blocks with large height; likewise the rightmost blocks with small height. Doing so one eventually concludes that the optimal configuration consists of just two blocks. Then our construction tells us that $y_1 = \cdots = y_n = 1$. Let $k = m_1$ (and $m_2 = n$). We can assume that $x_i = 0$ for $i > k$; otherwise the right blocks make the product smaller. Thus our construction yields that $x_1 = \cdots = x_k = n/k$. It then follows that our product is equal to

$$\displaystyle P(n,k) = \left(\frac{n}{k} - 1\right)^k.$$

The inequality $P(n,k) < e^{n/2}$ is equivalent to

$$\displaystyle \log\left(\frac{n}{k} - 1\right) < \frac{n}{2k}.$$

Put $s = n/k - 1$. We are then left to consider $\log(s) < (s+1)/2$. This inequality is immediately verified by calculus.

Post Undeleted by Stanley Yao Xiao
totally new answer
Source Link
Stanley Yao Xiao
  • 26.9k
  • 7
  • 49
  • 143

Using your notation, one can work explicitly as follows. Let $A \subset [n]$ denote the subset of indices with $|x_i - y_i| \leq 1$,$s_A = \sum_{i \in A} |x_i - y_i|$ and $B$ its complement in $[n]$$s_B = \sum_{i \in B} |x_i - y_i|$. It suffices to boundThen

$$\displaystyle \prod_{i \in B} |x_i - y_i|.$$$$\displaystyle s_A - s_B = \sum_{i \in A} (x_i - y_i) - \sum_{i \in B} (y_i - x_i) = n - n = 0,$$

Let $t = \min_{i \in B} |x_i - y_i|$. By assumption, we havehence $t > 1$$s_A = s_B = s$. Now, for any $s > 1$ I claimNote that the set of indices $B_s$ in $[n]$ with $|x_i - y_i| \geq s$ has at most$s \leq n$ $n/s$ elements. Indeed,(this cannot be improved by non-negativity it follows that for each $i \in B_s$ we have $\max\{x_i, y_i\} \geq s$. By monotonicity, it follows that ifmuch in general: say $x_i \geq s$$x_1 = n, x_i = 0$ for (say) then$i = 2, \cdots, n$ and $x_j \geq s$$y_i = 1$ for $j \leq i$$i = 1, \cdots, n$). Thus it follows that if $k$ is the largest index such that $x_k \geq s$ then

$$\displaystyle n \geq x_1 + \cdots + x_k \geq sk.$$by your AM-GM argument one gets

It thus follows that $k \leq n/s$, as desired.$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq s^n (n-x)^{x-n} x^{-x}$$

Now setfor $s = t$$x = |A|$. By construction we have

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq \prod_{i \in B} |x_i - y_i| \leq t^{n/t}.$$

The latter function on the right hand side is easily seencan be optimized to have a global maximum atgive an upper bound of $t = e$, and hence the right hand side$(2s/n)^n$. This is boundedslightly better than the bound given by Denis Serre, which takes the value $e^{n/e} < e^{n/2}$$s = n$.

Let $A \subset [n]$ denote the subset of indices with $|x_i - y_i| \leq 1$, and $B$ its complement in $[n]$. It suffices to bound

$$\displaystyle \prod_{i \in B} |x_i - y_i|.$$

Let $t = \min_{i \in B} |x_i - y_i|$. By assumption, we have $t > 1$. Now, for any $s > 1$ I claim that the set of indices $B_s$ in $[n]$ with $|x_i - y_i| \geq s$ has at most $n/s$ elements. Indeed, by non-negativity it follows that for each $i \in B_s$ we have $\max\{x_i, y_i\} \geq s$. By monotonicity, it follows that if $x_i \geq s$ (say) then $x_j \geq s$ for $j \leq i$. Thus it follows that if $k$ is the largest index such that $x_k \geq s$ then

$$\displaystyle n \geq x_1 + \cdots + x_k \geq sk.$$

It thus follows that $k \leq n/s$, as desired.

Now set $s = t$. By construction we have

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq \prod_{i \in B} |x_i - y_i| \leq t^{n/t}.$$

The function on the right hand side is easily seen to have a global maximum at $t = e$, and hence the right hand side is bounded by $e^{n/e} < e^{n/2}$.

Using your notation, one can work explicitly as follows. Let $s_A = \sum_{i \in A} |x_i - y_i|$ and $s_B = \sum_{i \in B} |x_i - y_i|$. Then

$$\displaystyle s_A - s_B = \sum_{i \in A} (x_i - y_i) - \sum_{i \in B} (y_i - x_i) = n - n = 0,$$

hence $s_A = s_B = s$. Note that $s \leq n$ (this cannot be improved by much in general: say $x_1 = n, x_i = 0$ for $i = 2, \cdots, n$ and $y_i = 1$ for $i = 1, \cdots, n$). Thus by your AM-GM argument one gets

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq s^n (n-x)^{x-n} x^{-x}$$

for $x = |A|$. The latter function can be optimized to give an upper bound of $(2s/n)^n$. This is slightly better than the bound given by Denis Serre, which takes the value $s = n$.

Post Deleted by Stanley Yao Xiao
Source Link
Stanley Yao Xiao
  • 26.9k
  • 7
  • 49
  • 143

Let $A \subset [n]$ denote the subset of indices with $|x_i - y_i| \leq 1$, and $B$ its complement in $[n]$. It suffices to bound

$$\displaystyle \prod_{i \in B} |x_i - y_i|.$$

Let $t = \min_{i \in B} |x_i - y_i|$. By assumption, we have $t > 1$. Now, for any $s > 1$ I claim that the set of indices $B_s$ in $[n]$ with $|x_i - y_i| \geq s$ has at most $n/s$ elements. Indeed, by non-negativity it follows that for each $i \in B_s$ we have $\max\{x_i, y_i\} \geq s$. By monotonicity, it follows that if $x_i \geq s$ (say) then $x_j \geq s$ for $j \leq i$. Thus it follows that if $k$ is the largest index such that $x_k \geq s$ then

$$\displaystyle n \geq x_1 + \cdots + x_k \geq sk.$$

It thus follows that $k \leq n/s$, as desired.

Now set $s = t$. By construction we have

$$\displaystyle \prod_{i = 1}^n |x_i - y_i| \leq \prod_{i \in B} |x_i - y_i| \leq t^{n/t}.$$

The function on the right hand side is easily seen to have a global maximum at $t = e$, and hence the right hand side is bounded by $e^{n/e} < e^{n/2}$.