Wednesday, December 7, 2011

Consecutive Numbers

I derived these shortcuts in high school. I'm noting it down because I always forget the formula and I have to derive it again to arrive to it.


Finding the sum(y) of x consecutive numbers (n).
xn + (x^2-x)/2 = y
x(n + (x-1)/2 = y

Finding the sum(y) of x consecutive EVEN/ODD numbers (n)
xn + x2 - x = y
x(n+x-1) = y

No comments:

Post a Comment