
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level in the bank's transaction monitoring system, where patterns accumulate hierarchically like a pyramid. The number of pattern combinations at depth level n follows a tetrahedral sequence, where each new level adds an increasing triangular layer of pattern relationships to the previous levels.
    

    
def tetrahedral_number(n):
    """
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level in the bank's transaction monitoring system, where patterns accumulate hierarchically like a pyramid. The number of pattern combinations at depth level n follows a tetrahedral sequence, where each new level adds an increasing triangular layer of pattern relationships to the previous levels.
    

    """
def tetrahedral_number(n):
    """
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level in the bank's transaction monitoring system, where patterns accumulate hierarchically like a pyramid. The number of pattern combinations at depth level n follows a tetrahedral sequence, where each new level adds an increasing triangular layer of pattern relationships to the previous levels.
    

    """
    return n * (n + 1) * (n + 2) / 6