cumulative_offspring_to_ancestors function cumulative_offspring_to_ancestors(O:Integer[_]) -> Integer[_] Convert a cumulative offspring vector into an ancestry vector.