(-0+n^2-1) + 2 sum[-y^2+n^2-1,{y,1,n-1}]