MHB What is the least value of the sum $|p-1|+|p-2|+\cdots+|p-10|$?

  • Thread starter Thread starter anemone
  • Start date Start date
  • Tags Tags
    Value
AI Thread Summary
The least value of the sum |p-1| + |p-2| + ... + |p-10| occurs when p is the median of the numbers 1 through 10, which is 5.5. This minimizes the total distance from p to each integer in the set. The minimum value of the sum is calculated to be 25. The problem highlights the concept of minimizing absolute deviations in a set of numbers. Understanding this principle is crucial for solving similar optimization problems.
anemone
Gold Member
MHB
POTW Director
Messages
3,851
Reaction score
115
Determine the least value of the sum $|p-1|+|p-2|+\cdots+|p-10|$ where $p \in R$.
 
Mathematics news on Phys.org
Nice question, here is a solution
I think p=5.5

|------|------|------|------|--\/--|------|------|------|------|
1...2...3...4...5.,5.5,..6...7...8...9...10

The sum equal in this case 9+7+5+3+1 = 25
 
anemone said:
Determine the least value of the sum $|p-1|+|p-2|+\cdots+|p-10|$ where $p \in R$.

Hello.

by symmetry:

If it were 9 elements:

4+3+2+1+0+|-1|+|-2|+|-3|+|-4|=20

Is now equivalent to insert "5" or "- 5"

Solution: p \in{ } [6,5]

Regards.
 
$Let \; \; S(p) = \sum_{i=1}^{10}\left | p-i \right |= \sum_{i=1}^{10}\sqrt{(p-i)^2} \\\\ S'(p)= \sum_{i=1}^{10}\frac{(p-i)}{|p-i|}= (\pm) 1(\pm) 1...(\pm) 1$,
where each sign depends on the sign of the difference: $p-i$.
The minimal sum requires: $S'(p)=0$, which happens when the signed ones annihilate:

$\sum_{i=1}^{10} (\pm )1 = 0.$ (Therefore, the case $p=i$ is not of interest here)

Thus, there must be exactly five $+1$ and five $-1$. Therefore $p$ is the midpoint between $5$ and $6$

And the minimal sum is: $S_{min}=2*(5*5.5-15)=25$.
 
Thank you so much for participating, guys! :)

Solution taken from other intelligent mind:
[FONT=MathJax_Main]|
Note that $|p-m|+|p-(11-m)| \ge 11-2m$. If we are to add the inequalities for $m=1,\,2,\,3,\,4,\,5$, we get $|p-1|+|p-2|+\cdots+|p-9|+|p-10| \ge 55-2(1+2+3+4+5)=25$, hence, the least value of the specified sum is 25.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Back
Top