
    In an innovative educational scoring system where student achievement levels form hexagonal patterns of increasing complexity, develop a function to calculate a student's nth achievement milestone score, where each milestone represents progressively advanced mastery levels. The scoring system follows a centered hexagonal pattern where the nth level encompasses all previous achievements plus new competencies arranged in a hexagonal formation.
    

    
def centered_hexagonal_number(n):
    """
    In an innovative educational scoring system where student achievement levels form hexagonal patterns of increasing complexity, develop a function to calculate a student's nth achievement milestone score, where each milestone represents progressively advanced mastery levels. The scoring system follows a centered hexagonal pattern where the nth level encompasses all previous achievements plus new competencies arranged in a hexagonal formation.
    

    """
def centered_hexagonal_number(n):
    """
    In an innovative educational scoring system where student achievement levels form hexagonal patterns of increasing complexity, develop a function to calculate a student's nth achievement milestone score, where each milestone represents progressively advanced mastery levels. The scoring system follows a centered hexagonal pattern where the nth level encompasses all previous achievements plus new competencies arranged in a hexagonal formation.
    

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