84.7k views
5 votes
1,3,6,10,15,21,28 as a function

User EvilDr
by
8.5k points

1 Answer

7 votes

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.

User Cymruu
by
8.3k points