
    Design a function for the automated grading system that calculates the total number of points a student should receive when correctly identifying the nth pattern in a centered hexagonal sequence assessment, where each pattern builds upon the previous one according to centered hexagonal number rules. The system uses this calculation to evaluate student responses and provide immediate feedback on their understanding of geometric number patterns.
    

    
def centered_hexagonal_number(n):
    """
    Design a function for the automated grading system that calculates the total number of points a student should receive when correctly identifying the nth pattern in a centered hexagonal sequence assessment, where each pattern builds upon the previous one according to centered hexagonal number rules. The system uses this calculation to evaluate student responses and provide immediate feedback on their understanding of geometric number patterns.
    

    """
def centered_hexagonal_number(n):
    """
    Design a function for the automated grading system that calculates the total number of points a student should receive when correctly identifying the nth pattern in a centered hexagonal sequence assessment, where each pattern builds upon the previous one according to centered hexagonal number rules. The system uses this calculation to evaluate student responses and provide immediate feedback on their understanding of geometric number patterns.
    

    """
    return 3 * n * (n - 1) + 1