开发者

i need to find the upper bound of this: or the tight bound:

lets say i have an expression:

(n)+((n-1)*2)+((n-2)*3)+((n-3)*4)+...+(3*(n-2))+(2*(n-1))+(1*(n))

what is 开发者_StackOverflow社区the tight bound of this? or the upper bound? is this n^3? is this n^4? the maximum amount of number i can get out of this? thanks

EDIT: so: for i=1 then: the ans is 1.

i=2: (1*2 + 2*1) 1=3: (1*3 + 2*2 + 3*1) i=4: (1*4 + 2*3 + 3*2 + 4*1 )

and so on


Try Wolfram Alpha ...

Sum[(i + 1) (n - i), {i, 0, n - 1}]

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜