The pattern goes like this: 1,3,6,10,15,21,28,etc.

Start with 1, add 2, add 3, etc.

I need a function that could find the value given the position in the pattern.

In this example an input of 4 would have an output of 10 since 10 is the value of the 4th position.

Any help on this would be greatly appreciated.