sum (n^2-1) for n= x to 6