
    Design a function that determines the total number of possible transaction patterns that need to be monitored when analyzing n levels of linked banking transactions for fraud detection, where each new level combines with all previous levels to form more complex patterns. The number of patterns follows the tetrahedral sequence, where level n builds upon all previous levels to create comprehensive fraud detection coverage.
    

    
def tetrahedral_number(n):
    """
    Design a function that determines the total number of possible transaction patterns that need to be monitored when analyzing n levels of linked banking transactions for fraud detection, where each new level combines with all previous levels to form more complex patterns. The number of patterns follows the tetrahedral sequence, where level n builds upon all previous levels to create comprehensive fraud detection coverage.
    

    """
def tetrahedral_number(n):
    """
    Design a function that determines the total number of possible transaction patterns that need to be monitored when analyzing n levels of linked banking transactions for fraud detection, where each new level combines with all previous levels to form more complex patterns. The number of patterns follows the tetrahedral sequence, where level n builds upon all previous levels to create comprehensive fraud detection coverage.
    

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