
    Given a sequence of patient health readings from a single monitoring session and the number of consecutive sessions required, determine the most concerning period showing sustained elevated readings across multiple sessions. The period of concern is identified by finding the largest sum of consecutive readings when the single session data is repeated across the required number of monitoring sessions.
    

    
def max_sub_array_sum_repeated(a, n, k):
    """
    Given a sequence of patient health readings from a single monitoring session and the number of consecutive sessions required, determine the most concerning period showing sustained elevated readings across multiple sessions. The period of concern is identified by finding the largest sum of consecutive readings when the single session data is repeated across the required number of monitoring sessions.
    

    """
def max_sub_array_sum_repeated(a, n, k):
    """
    Given a sequence of patient health readings from a single monitoring session and the number of consecutive sessions required, determine the most concerning period showing sustained elevated readings across multiple sessions. The period of concern is identified by finding the largest sum of consecutive readings when the single session data is repeated across the required number of monitoring sessions.
    

    """
    max_so_far = -2147483648
    max_ending_here = 0
    for i in range(n * k):
        max_ending_here = max_ending_here + a[i % n]
        if max_so_far < max_ending_here:
            max_so_far = max_ending_here
        if max_ending_here < 0:
            max_ending_here = 0
    return max_so_far