Let $X_1,X_2,...$ be an iid sequence of random variables such that $P(X_i=1)=p$, $P(X_i=0)=1-p$, defined on a probability space $(\Omega, \mathcal{F}, P)$. Take $\mathcal{F}_0$ to be be the trivial $\sigma$- algebra and let $\mathcal{F_n}=\sigma(X_1,...,X_n)$. Suppose that $M$ is a martingale adapted to this filtration. Show that there exists a constant $m$ and a predictable process $Y$ such that $M_n=m+\sum_{k=1}^nY_k(X_k-p)$.
The things I have thought of so far is that since $\mathcal{F}_0$ is the trivial $\sigma$-algebra, $M_0$ is a constant. Therefore we should take $m=M_0$. For any predictable process $Y$, $m+\sum_{k=1}^nY_k(X_k-p)$ is also a martingale because the $X_i$ form an independent sequence. It seems then that $M_1$ can take on only two distinct values since it is $\mathcal{F_1}$-measurable..
I do not know how to proceed and what to take for the predictable process $Y$. Could anyone give me a hint?
Hints: