dimensionless said:
Can you tell me what is meant by (mod N)?
It's explained here:
http://en.wikipedia.org/wiki/Modular_arithmetic
It also appears as though there could be more redundancies when
k1*n1/N = k2*n2/N+M
where M is an integer.
Yes, exactly. Or equivalently,
k1*n1 = k2*n2 + M*N
In other words, k1*n1 and k2*n2 differ by an integer multiple of N. This can also be written as I did before, in terms of (mod N) notation.
There are even more redundancies, for example
[tex]
\cos[2 \pi \ k1 \ n1 \ / \ N] = \cos[2 \pi (N - k1 \ n1) \ / \ N] \ \rightarrow \ k2 \ n2 = N - k1 \ n1[/tex]
[tex]
\cos[2 \pi \ k1 \ n1 \ / \ N] = -\cos[2 \pi \ ( N/2 \pm k1 \ n1 ) \ / \ N] \ \rightarrow \ k2 \ n2 = N/2 \ \pm \ k1 \ n1[/tex]
I.e. each value of cos(...), or it's negative, occurs 4 times during each period. And similarly for sin(...)
And that's not all:
[tex]
\cos[2 \pi \ k1 \ n1 \ / \ N] = \sin[2 \pi \ (N/4 - k1 \ n1) \ / \ N ] \ \rightarrow \ k2 \ n2 = N/4 - k1 \ n1[/tex]
I.e. there are redundancies between the sin(...) and cos(...) terms as well.
Essentially, you just need to evaluate cos(...) for 1/4 of a period, and all other cos(...) and sin(...) terms will appear in that list.