calculating expected  offspring problem