Let $[m]$ denote the finite set $\{0, 1, 2, \ldots, m\}$. For $n$-tuples $i = (i_1,\ldots, i_n)$ and $j = (j_1,\ldots, j_n)$ with entries in $[m]$, we always have the inequality $$ \max \{i_1, j_1\} + \cdots + \max\{i_n, j_n\} \ge \max\{i_1 + \cdots + i_n, j_1 + \cdots +j_n\}. $$ For how many pairs $(i,j) \in [m]^n \times [m]^n$ does equality hold?
2026-04-03 10:39:38.1775212778
On
Counting solutions of $\max\{i_1, j_1\} + \cdots + \max\{i_n, j_n\} = \max\{i_1 + \cdots + i_n, j_1 + \cdots+ j_n\}$
42 Views Asked by user17982 https://math.techqa.club/user/user17982/detail At
2
There are 2 best solutions below
3
On
Equality holds if for every $r$, either $i_r\le j_r$ or $i_r\ge j_r$ where $r∈\{1,2,...n\}$.
For no. of pairs where $i_r\le j_r$, no of ways of picking any two numbers from set $\{0,1,2...m\}$ is $(\frac{(m+1)m}{2}+m+1)^n=(\frac{(m+2)(m+1)}{2})^n$ ways.
Same is the number of cases for $i_r\ge j_r$.
Now the equality case i.e. $i_r=j_r$ is being counted twice above, so it must be subtracted once. The no of ways $i_r=j_r$ is $(m+1)^n$
Therefore the total no. of ways in which equality holds is $\ 2((m+1)(m+1))^n-(m+1)^n$$$=(m+1)^n((\frac{m+2}{2})^n-1)$$
This proof may be wrong but correct me if it is:
Assume $(x_i,y_i)$ where $1\leq i\leq n$ are points in the plane.
Then $\max(x_i,y_i)=\frac{|x_i-y_i|}{2}+\frac{x_i+y_i}{2}$
So $\sum\limits_{i=1}^{n}\max(x_i,y_i)\geq \max(\sum\limits_{i=1}^{n}x_i,\sum\limits_{i=1}^{n}y_i)$ reduces to
$$\sum\limits_{i=1}^{n}\frac{|x_i-y_i|}{2}+\sum\limits_{i=1}^{n}\frac{x_i+y_i}{2}\geq \frac{|\sum\limits_{i=1}^{n}x_i-\sum\limits_{i=1}^{n}y_i|}{2}+\frac{\sum\limits_{i=1}^{n}x_i+\sum\limits_{i=1}^{n}y_i}{2}$$
which reduces to
$$\sum\limits_{i=1}^{n}|x_i-y_i|\geq|\sum\limits_{i=1}^{n}x_i-\sum\limits_{i=1}^{n}y_i|$$
letting $z_i=x_i-y_i$ we have
$$\sum\limits_{i=1}^{n}|z_i|\geq|\sum\limits_{i=1}^{n}z_i|$$
Which is true for all real numbers.
The only time equality is held is when all $z_i$ are positive or negative or when $x_i\geq y_i$ is true for all $i$ or $x_i<y_i$ is true for all $i$.