ith rational number - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Number Theory : numtheory/ithrational

numtheory[ithrational] - ith rational number

Calling Sequence

ithrational(i)

Parameters

i

-

integer

Description

• 

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.

Examples

withnumtheory:

seqithrationali,i=0..10

0,1,12,2,13,32,23,3,14,43,35

(1)

seqithrational2i1,i=1..10

1,2,3,4,5,6,7,8,9,10

(2)

seqithrational2i1,i=1..10

1,12,13,14,15,16,17,18,19,110

(3)

ithrational1234321

74615875

(4)

See Also

ithprime


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam