0 out of 464 challenges solved

Find the N'th Star Number

A star number is a centered figurate number that represents a centered hexagram (a six-pointed star), such as the Star of David. The formula to calculate the N'th star number is:

\[ S_n = 6n(n-1) + 1 \]

Write a Python function `find_star_num(n)` that takes an integer `n` as input and returns the N'th star number.

#### Example Usage
```python [main.nopy]
print(find_star_num(3))  # Output: 37
print(find_star_num(4))  # Output: 73
print(find_star_num(5))  # Output: 121
```

#### Constraints
- The input `n` will be a positive integer.
- The function should return the result as an integer.
def find_star_num(n):
    """
    Calculate the N'th star number.

    Args:
        n (int): The position of the star number to calculate.

    Returns:
        int: The N'th star number.
    """
    # Implement the formula for the N'th star number
    pass