import math


def trrt(num: int) -> float:
    """
    Return the triangular root of the number _num_
    see https://en.wikipedia.org/wiki/Triangular_number

    """
    return (math.sqrt(num * 8 + 1) - 1) / 2