This R code calculates the probabilities of 0-n deaths in a group of n men given their ages.