numtheory(deprecated)
ithrational
i'th rational number
Calling Sequence
Parameters
Description
Examples
ithrational(i)
i
-
integer
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.
with⁡numtheory:
seq⁡ithrational⁡i,i=0..10
0,1,12,2,13,32,23,3,14,43,35
seq⁡ithrational⁡2i−1,i=1..10
1,2,3,4,5,6,7,8,9,10
1,12,13,14,15,16,17,18,19,110
ithrational⁡1234321
74615875
See Also
ithprime
NumberTheory[CalkinWilfSequence]
Download Help Document