import math


def glue_probability(vsize, probability):
    """
    Find the req library size given:
    :param vsize: Number of possible variants
    :param probability: probability the library is 100% complete
    :return: library size required
    """
    return -vsize * math.log(1 - math.exp(math.log(probability) / vsize))