I'm interested in finding sums of the form
$\sum_i{\sum_j{(-1)^{N-i+j}} }$
where $N$ can be supposed to be constant.
I'm using the difference calculus to help solve these sums efficiently. I believe that I can simulate this sum as
$\sum_i{\sum_j{cos(\pi(N-i+j))}}$
I'm attempting to simulate the sum, since I'm having trouble directly evaluating it any other way. I'm wondering if there are alternatives that may be easier to work with. So my question is basically what's the best way to evaluate or simulate this? Alternatives are welcome, just as any good method is!
*EDIT*
This is actually part of a larger formula. In other words, I'm working with something like
$\sum_a{f_1 \sum_b{f_2\sum_i{\sum_j{cos(\pi(N-i+j))}}}}$
So I'm especially interested in something that I can easily work with inside of a larger difference equation.