3-1= 2
6-3= 3
10-6= 4
15- 10= 5.
In other words, at each step you are adding the next integer: we start with 1 and then have 1+ 2= 3, 3+3= (1+2+3)= 6, 6+ 4= (1+ 2+ 3)+ 4= 10, 10+ 5= (1+ 2+ 3+ 4)+ 5= 15. That is how Bruno J. got his result.
The "first difference", each term minus the previous, is 2, 3, 4, .... the "second difference", subtracting those differences", is the constant, 1. The fact that the second difference is a constant tells us we can write the numbers in this sequence as a second degree polynomial.
That's much harder! I think I would look at the n at which the value of the sequence changes:
0 0
1 1
3 2
6 3
10 4
and look for a formula for the sequence 0, 1, 3, 6, 10. That's easy because 1= 0+1, 3= 1+ 2, 6= 3+ 3, 10= 6+ 4 as before. Each such index is . Was this where you got your first question?
Now we can say and for k from to .
I don't think you are going to be able to get any "single" formula for that.
thank you so much for the fast reply
but the two questions is not really related, but kinda in a way. Anyways I am just doing a computer science assignment, and these questions are a small part that i need to figure out to complete my answer.
I guess I have to tackle the problem another way then.
thanks again!!