
    Design a function that determines the total number of unique transaction pattern combinations that need to be analyzed when examining n levels of fraud detection criteria, where each new level incorporates an additional transaction characteristic while maintaining relationships with all previous characteristics. The number of combinations at each level forms a tetrahedral pattern, with each level building upon the previous ones to create a more comprehensive fraud detection model.
    

    
def tetrahedral_number(n):
    """
    Design a function that determines the total number of unique transaction pattern combinations that need to be analyzed when examining n levels of fraud detection criteria, where each new level incorporates an additional transaction characteristic while maintaining relationships with all previous characteristics. The number of combinations at each level forms a tetrahedral pattern, with each level building upon the previous ones to create a more comprehensive fraud detection model.
    

    """
def tetrahedral_number(n):
    """
    Design a function that determines the total number of unique transaction pattern combinations that need to be analyzed when examining n levels of fraud detection criteria, where each new level incorporates an additional transaction characteristic while maintaining relationships with all previous characteristics. The number of combinations at each level forms a tetrahedral pattern, with each level building upon the previous ones to create a more comprehensive fraud detection model.
    

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