Solution (source code)

= Solution

The moment-generating function of one increment is
$$
\mathbb E e^{\theta\xi_1}=pe^\theta+(1-p)e^{-\theta}.
$$
Thus with
$$
\boxed{\psi(\theta)=\log(pe^\theta+(1-p)e^{-\theta})},
$$
independence gives
$$
\mathbb E[Z_{n+1}\mid\mathcal F_n]
=Z_n e^{-\psi(\theta)}\mathbb E e^{\theta\xi_{n+1}}
=Z_n.
$$
This is the <exponential martingale of a biased simple random walk>.