1+(n+2)+(2n+3)+(3n+4)+(4n+5)+……((n-1)n+n)的答案
问题描述:
1+(n+2)+(2n+3)+(3n+4)+(4n+5)+……((n-1)n+n)的答案
答
(n*n*n+n)/2
答
1+(n+2)+(2n+3)+(3n+4)+(4n+5)+……((n-1)n+n)
=(1+2+3+...+n)+(n+2n+3n+.(n-1)n)
=(1+n)n/2+n(1+2+3+.(n-1))
=(1+n)n/2+n*(1+n-1)(n-1)/2
=(1+n)n/2+n^2(n-1)/2
=n/2(1+n+n^2-n)
=n(n^2+1)/2