My question boils down to how the Fourier transform is discretized when we discretize the field $\phi(x)$ in a Lagrangian $\mathcal{L}$. To put things on a concrete footing, consider the following Lagrangian (from exercise 17.5 of Lancaster and Blundell): \begin{equation} \mathcal{L} = \frac{1}{2}\left(\frac{\partial\phi(x)}{\partial x}\right)^2 + \frac{m^2}{2}\phi(x)^2, \end{equation} in one dimension. (Please correct any mistakes in this preamble!)
Ordinarially, we would define the Fourier transform relations as \begin{equation} \phi(x) = \int\frac{\mathrm{d}p}{2\pi}\tilde{\phi}(p)\mathrm{e}^{ip\cdot x}\longleftrightarrow \tilde{\phi}(p) =\int\mathrm{d}x\phi(x)\mathrm{e}^{-ip\cdot x}, \end{equation} leading to the delta function relation \begin{equation} \frac{1}{2\pi}\int\mathrm{d}p\;\mathrm{e}^{ip\cdot y}=\delta(y). \end{equation} L&B introduce discretization into the problem by defining the relationships: \begin{equation} \phi_j=\frac{1}{\sqrt{Na}}\sum_p\tilde{\phi}_p\mathrm{e}^{ipja}\longleftrightarrow \tilde{\phi}_p=\frac{1}{\sqrt{Na}}\sum_j{\phi}_j\mathrm{e}^{-ipja}. \end{equation} Where $a$ is the lattice spacing, $N$ the number of lattice points and $j$ an index which labels the lattice points. However, this seems to imply that \begin{equation} \frac{1}{Na}\sum_k\mathrm{e}^{ikja} = \delta_{j,0}. \end{equation} Here is where I am confused. Surely if $j=0$ in this equation, then $\sum_k = N$ - so where does the $a$ come from? Generally I am unsure how one derives these discretised Fourier relations. If anyone could point me in the right direction to actually understanding where they come from, in particular relating to the prefactors $1/\sqrt{Na}$, then I would be very appreciative.
EDIT: Why $\int\mathrm{d}x\rightarrow Na\sum_j$ also confuses me deeply - this time, it seems to me that $\mathrm{d}x\rightarrow a$, and hence that the $N$ should not be there!