import math


def ratio(N):
    """
    Returns the N-th ratio value

    Parameters
    ----------
    N : int
        the ratio type

    Returns
    -------
    float
        the ratio value
    """

    return (N+math.sqrt(N*N+4))/2