>>435
n が整数なら cos{(n+1)*π} = (-1)^(n+1)