If I had $1000(variable) and I want to split that amount up and give it to 20(variable) people, but rather than give it evenly to each person, I want to give more to the 1st person, and the 2nd person, etc.
So the 20th person gets the least, and the 5th person gets the 5th most.
How would I achieve that?
Thanks
There are a lot of ways to do this.
Say you have $x$ amount of things to distribute amongst $n$ people. One way to do it would be to let $k=\frac{2x}{n(n-1)}$. Then give the first person $nk$, the second person $(n-1)k$, and in general, the $i$th person $(n-i+1)k$. note that this means that the total amount given out is $nk+(n-1)k+\ldots+k=\frac{n(n-1)}{2}k=x$.