Challenge Problem #9 [Olinguito]

  • Context: MHB 
  • Thread starter Thread starter Olinguito
  • Start date Start date
  • Tags Tags
    Challenge
Click For Summary

Discussion Overview

The discussion revolves around a challenge problem involving permutations of a set and specific assertions related to sums of differences between permutation outputs and their indices. Participants explore the validity of these assertions and the maximum value of a defined function related to these permutations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant claims to have solved the first assertion regarding the sum of differences being zero for each permutation.
  • Another participant argues that the second assertion, which states that the sum of absolute differences must be even, follows from the first assertion, noting that the negative terms in the sum are balanced by positive terms.
  • Regarding the bonus challenge, one participant suggests that the maximum value of the function $\sigma_\pi$ could be $\lfloor \frac{n^2}{2} \rfloor$, based on experimentation with small values of $n$, but admits to lacking a formal proof.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the proof of the second assertion or the maximum value of $\sigma_\pi$, indicating that multiple views and uncertainties remain regarding these points.

Contextual Notes

The discussion does not resolve the mathematical steps needed to prove the assertions or the maximum value, leaving these as open questions.

Olinguito
Messages
239
Reaction score
0
Let $S_n$ be the group of all permutations of the set $\{1,\ldots,n\}$. Determine whether the following assertions are true or false.

1. For each $\pi\in S_n$,
$$\sum_{i=1}^n\,(\pi(i)-i)\ =\ 0.$$

2. If
$$\sigma_\pi\ =\ \sum_{i=1}^n\,\left|\pi(i)-i\right|$$
for each $\pi\in S_n$, then $\sigma_\pi$ is an even number.

Bonus challenge: Find $\displaystyle\max_{\pi\in S_n}\,\sigma_\pi$.
 
Physics news on Phys.org
I have solved the first part of the problem.

$$\sum_{i=1}^n\,(\pi(i)-i))\ =\ 0$$
follows from the fact that
$$\sum_{i=1}^n\,\pi(i)\ =\ \sum_{i=1}^n\,i$$
(the terms of the LHS sum are precisely those of the RHS sum in a different order).
 
[sp]For the second part, notice that by the first part, the sum of the negative terms in $\sum(\pi(i) - i)$ is the negative of the sum of the positive terms. So when you replace the negative terms by their absolute values, the resulting sum is twice the sum of the positive terms. In other words, it must be an even number.
[/sp]
 
Olinguito said:
Bonus challenge: Find $\displaystyle\max_{\pi\in S_n}\,\sigma_\pi$.
[sp]That part looks harder. After experimenting with small values of $n$, I believe that $$\max_{\pi\in S_n}\sigma_\pi = \bigl\lfloor\tfrac{n^2}2\bigr\rfloor$$. But I don't have a proof of that.
[/sp]
 
Opalg said:
[sp]That part looks harder. After experimenting with small values of $n$, I believe that $$\max_{\pi\in S_n}\sigma_\pi = \bigl\lfloor\tfrac{n^2}2\bigr\rfloor$$. But I don't have a proof of that.
[/sp]
It would be $\dfrac{n^2}2$ if $n$ is even and $\dfrac{n^2-1}2$ if $n$ is odd – a simple induction clinches the proof.

Thanks for helping me with the challenge! (Clapping)
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
727
  • · Replies 2 ·
Replies
2
Views
2K
Replies
22
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K