Find the sum, f(n), of the first n terms of the sequence:


0,1,1,2,2,3,3........p,p,p+1,p+1,.....

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