I have the following model
$$N \sim Pois(\lambda) \\ n \sim Bin(N,p)$$
for which I calculate the posterior for the parameter $N$ as
$$\pi(N|n,p,\lambda) = \frac{f(n|N,p)\pi(N|\lambda)}{f(n|p,\lambda)}$$
My goal is to calculate the Kullback-Leibler distance between the posterior and prior, i.e. $KL = \sum \pi(N|n,p)log\frac{\pi(N|n,p,\lambda)}{\pi(N|\lambda)}$
$1)$The first step is to calculate the prior predictive $f(n|p,\lambda)$
$f(n|p,\lambda) = \sum_{N=0}^{\infty} \binom{N}{n}p^{n}(1-p)^{N-n}\frac{\lambda^{N}e^{-\lambda}}{N!}$
However, for $N<n$ I believe the $\textit{Binomial}$ distribution would be meaningless, so I start the sum from $N=n,n+1,...
$f(n|p,\lambda) = \sum_{N=n}^{\infty} \binom{N}{n}p^{n}(1-p)^{N-n}\frac{\lambda^{N}e^{-\lambda}}{N!}$
Because, I do not know how to calculate it analytically, I calculate it numerically by generating a sequence of numbers $n,n+1,..., M$, where $M$ is a sufficiently large number that will make the $\textit{Poisson}$ prior zero (so I truncate the summation), and finally iteratively calculate the sum.
$2)$ Now that I have calculated (hope correctly) the prior predictive and I know all the terms of the posterior as functions of $N$, I can move forward to calculating numerically the $KL$ distance.
$$KL = \sum_{N=n}^{\infty} \pi(N|n,p)log\frac{\pi(N|n,p,\lambda)}{\pi(N|\lambda)}$$
I again simulate a large sequence of numbers $n,n+1,..., M$ for a sufficiently large $M$.
Questions:
$i)$ Is there a way to calculate analytically the prior predictive $f(n|p,\lambda)$? Or what I did is used in practice??
$ii)$ In the second step, there would be a problem when $N=M$ (or when $N$ starts getting unlikely values) because the $\textit{Poisson}$ prior would be zero, something that has to be avoided because it is on the denominator. Is there a way to alleviate that problem?
$iii)$ The ranges we conduct the summations are correct?? I thought that they should be different because in the prior predictive we take the sum over the range of prior beliefs (however, we take into account the value of $n$ which is somehow counterintuitive). Whereas in the $KL$ the summation should be over the values of the posterior range, I assume they coincide?
Any suggestions would be great!