
    Write a function to determine the total number of possible vital sign monitoring sequences of length 2n hours, where each hour's reading is marked as either normal (1) or concerning (0), such that the count of normal readings in the first n hours equals the count of normal readings in the last n hours. This analysis helps identify balanced patterns in patient stability across equal monitoring periods.
    

    
def count_binary_seq(n):
    """
    Write a function to determine the total number of possible vital sign monitoring sequences of length 2n hours, where each hour's reading is marked as either normal (1) or concerning (0), such that the count of normal readings in the first n hours equals the count of normal readings in the last n hours. This analysis helps identify balanced patterns in patient stability across equal monitoring periods.
    

    """
def count_binary_seq(n):
    """
    Write a function to determine the total number of possible vital sign monitoring sequences of length 2n hours, where each hour's reading is marked as either normal (1) or concerning (0), such that the count of normal readings in the first n hours equals the count of normal readings in the last n hours. This analysis helps identify balanced patterns in patient stability across equal monitoring periods.
    

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