# Levi Ben Gershon theorem

The following theorem is taken from Levi Ben Gershon's manuscript Maaseh Hoshev (The Art of Calculation), 1321.

When you add consecutive numbers starting with 1, and the number of numbers you add is odd, the result is equal to the product of the middle number among them times the last number.

$$\sum_{i=1}^{2k+1} i = (k+1)(2k+1)$$

Below is my proof by induction to prove this theorem.

Base case (where $$k=0$$):

So base case checks. Assume $$k = n$$ holds:

$$\sum_{i=1}^{2n+1} i = (n+1)(2n+1)$$

Show $$k = n+1$$ holds:

$$\sum_{i=1}^{2(n+1)+1} i = ((n+1)+1)(2(n+1)+1)$$

QED.