Let $(X_n)_{n\geq 1}$ be independent such that $E(X_i)=m_i$, ${\rm var}(X_i)=\sigma_i^2$, $i\geq 1$. Let $S_n=\sum_{i=1}^n X_i$ and $\mathcal{F}_n=\sigma(X_i,1\leq i\leq n)$. Find sequences $(b_n)_{n\geq 1}$, $(c_n)_{n\geq 1}$ of real numbers such that $(S_n^2+b_n S_n +c_n)_{n\geq 1}$ is a $(\mathcal{F}_n)_{n\geq 1}$-martingale.
I start from the definition of martingale and stuck when expanding the squre of $S_n$. Can someone figure out how to finish the computation.