1 + 2 + ... + N = N(N+1)/2. Eq (1.31) is the induction step: adding
(N+1) gives (N+1)(N+2)/2, the same formula with N -> N+1.
Arguments
- N
upper limit, N >= 0.
Value
list(n, explicit_sum, closed_form, next_closed_form, forms_agree).
References
Morin, D. J. (2016). Probability: For the Enthusiastic
Beginner. Createspace. Eq. (1.31).
Examples
SumInts(6)$closed_form
#> [1] 21