Table[1/8(2n^2-4n+9-(-1)^n),{n,2,20}]