def METHOD_NAME(prefix, number, total):
    """
    Format a unique series group name of the form `prefix_XXX` where `XXX` is
    the formatted `number` long enough for `total` number of groups.
    """
    return f"{prefix}_{number:0{math.ceil(math.log(total, 10))}d}", number + 1