It seems that the sequence you provided is the sequence of triangular numbers. The function that generates this sequence could be defined as:
f(n) = n*(n+1)/2
Where n is the position of the number in the sequence.
So, for example:
f(1) = 1*(1+1)/2 = 1
f(2) = 2*(2+1)/2 = 3
f(3) = 3*(3+1)/2 = 6
and so on.