------
## 最终结论
```python
def get_carol(n):
    return (2**n - 1)**2 - 2

# Test cases
assert get_carol(2) == 7
assert get_carol(4) == 223
assert get_carol(5) == 959
```