http://acm.hdu.edu.cn/showproblem.php?pid=1178

等差求和公式s=n(n+1)/2=n/2+n^2/2。。。

sum=1+3+6+………………+i(i+1)(i+2)/6

=1+(1+2)+(1+2+3)+…………(1+2+3+……n)

=1/2+1^2/2+2/2+2^2/2+…………n/2+n^2/2

=n(n+1)/2/2+n(n+1)(n+2)/6/2

=n(n+1)(n+2)/6.

 

 

 

相关文章:

  • 2021-09-23
  • 2021-08-26
  • 2021-06-30
  • 2021-12-16
  • 2022-12-23
  • 2021-09-05
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-04-23
相关资源
相似解决方案