Expected population size in the generation-dependent branching process