```python
def centered_hexagonal_number(n):
    """
    Calculates the nth centered hexagonal number.
    A centered hexagonal number is a centered figurate number that represents a
    hexagon with a dot in the center and all other dots surrounding the center
    dot in a hexagonal lattice.
    The formula for the nth centered hexagonal number is 3*n*(n-1) + 1.
    """
    return 3 * n * (n - 1) + 1

```