i'th rational number
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[CalkinWilfSequence] instead.
The function ithrational generates the ith positive rational number as illustrated by the first example below. That is, this function generates all positive rational numbers in a non-repeating sequence.
The ordering of the rationals satisfies ithrational(2^(i-1)) = 1/i and ithrational(2^i-1) = i.
The command with(numtheory,ithrational) allows the use of the abbreviated form of this command.
Download Help Document
What kind of issue would you like to report? (Optional)