sum from n = 1 to m of sin(pi*n)*(n^2(n^2+2))/((n^2-4)(n^2-1))