I am looking for a formula (Fourier series) to generate an impulse train waveform - a spike-wave with amplitude and period both $1$ – so that $f(x)$ has value $1$ at $x = 1,2,3,4...$ and $f(x)$ has value $0$ at all non-integer values of $x$.
Someone very helpfully gave me:
$$S = \frac 1 N \sum_{k=0}^{N-1} e ^{j2\pi\frac{kn}{N}}$$
The same equation can be found on this site: Equation for impulse train as sum of complex exponentials. However...
I have two questions:
Is there an equivalent trigonometric function? If so, what is it?
Sadly, my maths A level is such ancient history that I am struggling with what the terms in the above equation mean. Specifically:
$S$ = series, i.e. the equivalent of $f(x)$ - yes?
$e$ = famous irrational number - yes?
$j$ = square root of $-1$ - yes?
$N$ and $n$ ... Now, here I get muddled. 30 years of doing no maths at all has left me less than fluent... I assume the lowercase ($n$) is the period/frequency of the impulse train. So that leaves uppercase ($N$) as... The number on the $x$-axis that we are solving for...? The duration of the signal...? Some factor that compensates for $\pi$ to create integer values...?
Sorry. I know this is basic stuff. But I'd really appreciate some help...