Branching processes and stochastic equations