def harmonic(n):
    """
    Compute the n-th Harmonic number

    Compute Hn where Hn = 1 + 1/2 + 1/3 + ... + 1/n

    Parameters
    ----------
    n : int
        n-th number

    Returns
    -------
    hn
        harmonic number
    """
    hn = 0
    for i in range(1, n):
        hn += 1 / i
    return hn