import math


def get_num_elements(n):
    """Return the number of elements from the number of possible pairwise combinations.

    Essentially, the reverse of the previous function. We only consider the solution
    for [-b + sqrt(b^2 - 4ac)] for practical reasons.
    """
    return int(1 + math.sqrt(1 + (8 * n))) // 2