# continued_fraction function

The continued fraction of a rational number, as a list.

## How to write it

### continued_fraction(x)

**x**

A rational number. Takes a number.

## Examples

- $\displaystyle \operatorname{continued\_fraction}\left(\frac{7}{3}\right) = \left[ 2, 3 \right]$

  `continued_fraction(7/3)`

  In the solver, `continued_fraction(7/3)` gives `[2, 3]`.

  [Open in the solver](https://hilberon.com/?q=continued_fraction%287%2F3%29)

## Related functions

- [from_continued_fraction](https://hilberon.com/library/from_continued_fraction)

  The number a continued fraction stands for.
- [convergents](https://hilberon.com/library/convergents)

  The convergents of a continued fraction.
- [chinese_remainder](https://hilberon.com/library/chinese_remainder)

  The number that leaves given remainders on division by given moduli.
- [discrete_log](https://hilberon.com/library/discrete_log)

  The exponent that takes a base to a value modulo a number.
- [catalan_number](https://hilberon.com/library/catalan_number)

  The n-th Catalan number.
- [divisor_count](https://hilberon.com/library/divisor_count)

  How many positive divisors a whole number has.

---
Source: https://hilberon.com/library/continued_fraction
