Hi Mr-R,
thanks for your answer. Yes, but my problem is that the sum is not running over r_i but over i.
Let's assume the r_i are an set of positions, for example always the same position, i.e. r_i={1,1,1,1,1,1,...}. Then in the end, that's just a product
prod_n=0^\infity e^{i(k-q)}