Suppose I have a ''nice'' function $f : \mathbb{R} \rightarrow \mathbb{C}$. Fix an integer $\alpha$ and $d$. Could someone please explain me how the following formula holds?
$$ \sum_{a \equiv \alpha (mod \ d)} f(a^2 + b^2) = \frac{1}{d} \sum_k e^{2 \pi i \alpha k/d} \int_{- \infty}^{\infty} f(t^2 + b^2) e^{2 \pi i t k / d} dt $$ I am really confused how to make this work because of the sum over a fixed congruence class. Thank you very much!