开发者

Simple maths question [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 2 years ago.

Improve this question

What is it called when you add numbers from 1 ..n . I know when you开发者_JAVA百科 multiply them its called factorial

1* 2 * 3 * 4* 5 = 5!

what is it called when its

1+2+3+4+5 =15?


It seems to be called a Triangular number and it is equal to n(n+1)/2


It's a triangular number.

http://en.wikipedia.org/wiki/Triangular_number


you could write it in summation form

http://en.wikipedia.org/wiki/Summation

but other than summation I don't think it has a special name.


This is named "Arithmetic progression": http://en.wikipedia.org/wiki/Arithmetic_progression


Cumulative sum or prefix sum


I would call it "summation from 1 to n." Which is really shorthand for "summation of i where i ranges from 1 to n".


I don't believe it has a special name, but the numbers that result are known as the Triangluar Numbers.


Sum of an Arithmetic Progression. You can even use a formula to calculate it quickly

s= n/2(2a+(n-1)d)

where

s = sum of progression, n = number of terms, a = value of first term, d = difference between 2 terms

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜