What about putting here a
```if n < 0:
    raise ValueError("Cartan number (or whatever it's called) cannot be negative")
```