
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level n, where each level aggregates patterns from all previous levels across banking channels to form a comprehensive fraud detection hierarchy. The number of patterns at each level builds upon previous levels in a tetrahedral fashion, with level n containing the sum of all triangular pattern combinations from levels 1 to n.
    

    
def tetrahedral_number(n):
    """
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level n, where each level aggregates patterns from all previous levels across banking channels to form a comprehensive fraud detection hierarchy. The number of patterns at each level builds upon previous levels in a tetrahedral fashion, with level n containing the sum of all triangular pattern combinations from levels 1 to n.
    

    """
def tetrahedral_number(n):
    """
    Design a function that calculates the total number of potential fraud pattern combinations at a given analysis depth level n, where each level aggregates patterns from all previous levels across banking channels to form a comprehensive fraud detection hierarchy. The number of patterns at each level builds upon previous levels in a tetrahedral fashion, with level n containing the sum of all triangular pattern combinations from levels 1 to n.
    

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