4

Wolfram alpha is able to compute this sum: $$ \sum_{j=1}^n \binom{j}{2} = \frac{1}{6}(n-1)n(n+1). $$

How can Wolfram alpha do it? What kind of algorithm does it use?

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514
张 源
  • 159
  • 3

1 Answers1

2

It uses algorithms discussed in the book A=B by Petkovšek, Wilf and Zeilberger. These algorithms can compute a closed-form expression for a summation of rational functions (in your case, the rational function is $j(j-1)/2$), or determine that no such closed-form expression exists.

Yuval Filmus
  • 280,205
  • 27
  • 317
  • 514