Not sure we need this.

It's simple:
```python
for t in continued_fraction_convergents(cf):
    if t.q > 1234567:
        break
return t