Skip to content
The Chat Archive
grok-3-mini-beta· xAI LMArena Human Preference 140K

if i have a continued fraction a/b = (c0,c1,c2,...,cn), to what fraction does the…

  1. User

    if i have a continued fraction a/b = (c_0,c_1,c_2,...,c_n), to what fraction does the continued fraction (c_n,c_{n-1},c_{n-2}...,c_0) correspond?

  2. Assistant

    For a continued fraction ( \frac{a}{b} = [c_0; c_1, c_2, \dots, c_n] ), the convergents are fractions ( \frac{h_k}{k_k} ) for ( k = 0 ) to ( n ), where ( h_n ) and ( k_n ) are such that ( \frac{a}{b} = \frac{h_n}{k_n} ).

    The continued fraction ( [c_n; c_{n-1}, \dots, c_0] ) corresponds to the fraction ( \frac{h_n}{h_{n-1}} ), where ( h_n ) is the numerator of the last convergent and ( h_{n-1} ) is the numerator of the second-last convergent of the original continued fraction.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.