$201$ positive integers are written on a line, such that both the first one and the last one are equal to $19999$. Each one of the remaining numbers is less than the average of its neighbouring numbers, and the differences between each one of the remaining numbers and the average of its neighbouring numbers are all equal to a unique integer. Find the sum of all terms on the line.
Source: Argentina Math Olympiad
Number Theory
3 Upvotes
0 Downvotes