Function fareySequence

  • Create an iterator over the n'th Farey sequence. (All fractions between 0 and 1 inclusive.)

    Parameters

    • maxDenominator: number

      Maximum denominator in the sequence.

    Returns Generator<Fraction, undefined, undefined>

    Yields

    Fractions in ascending order starting from 0/1 and ending at 1/1.