Copyright © University of Cambridge. All rights reserved.

## 'Summats Clear' printed from http://nrich.maths.org/

Find the sum, $f(n)$, of the first $n$ terms of the sequence: \begin{equation*} 0, 1, 1, 2, 2, 3, 3, \dots , p, p, p +1, p + 1, \dots \end{equation*}

Go on to prove that $f(a + b) - f(a - b) = ab$, where $a$ and $b$ are positive integers and $a > b$.