from math import ceil, sqrt


def a078633(n: int) -> int:
    """
    https://oeis.org/A078633

    >>> a078633(1)
    4
    >>> a078633(4)
    12
    >>> a078633(50)
    115
    """
    return (2 * n) + ceil(2 * sqrt(n))