Find Value
Value: 1, 3, 5, 10, 15, 21
Position: 1, 2, 3, 4, 5, 6
(The Value numbers are meant to correspond with the Position numbers above)
Value(1) at position 1 is given as 1. If position p > 1, Value is the Value at position (p-1) + p. Prompt the user for the position and print the corresponding value.
Ex:
Input:7
Output: 28
Input:10
Output: 55
Can anyone help me with figure out the mathmatical portion of this? It's confusing me so much. All I know is that the difference in the values increases by 1 at every position.

