
    Write a function to find the total number of possible daily emergency room patient volume patterns over 2n hours, where each hour is marked as either high-volume (1) or normal-volume (0), such that the total number of high-volume hours in the first n hours equals the total number of high-volume hours in the last n hours. This pattern analysis helps hospitals allocate staff and resources effectively by identifying balanced workload distributions across day and night shifts.
    

    
def count_binary_seq(n):
    """
    Write a function to find the total number of possible daily emergency room patient volume patterns over 2n hours, where each hour is marked as either high-volume (1) or normal-volume (0), such that the total number of high-volume hours in the first n hours equals the total number of high-volume hours in the last n hours. This pattern analysis helps hospitals allocate staff and resources effectively by identifying balanced workload distributions across day and night shifts.
    

    """
def count_binary_seq(n):
    """
    Write a function to find the total number of possible daily emergency room patient volume patterns over 2n hours, where each hour is marked as either high-volume (1) or normal-volume (0), such that the total number of high-volume hours in the first n hours equals the total number of high-volume hours in the last n hours. This pattern analysis helps hospitals allocate staff and resources effectively by identifying balanced workload distributions across day and night shifts.
    

    """
    nCr = 1
    res = 1
    for r in range(1, n + 1):
        nCr = nCr * (n + 1 - r) / r
        res += nCr * nCr
    return res