Closed-form solutions for Bernoulli and compound Poisson branching processes in random environments | Synapse