Close
Close window
numtheory(deprecated)/ithrational - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : numtheory(deprecated)/ithrational
[フレーム] [フレーム]

numtheory(deprecated)

ithrational

i'th rational number

Calling Sequence

ithrational(i)

Parameters

i

-

integer

Description

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.

Examples

Important: The numtheory package has been deprecated . Use the superseding command NumberTheory[CalkinWilfSequence] instead.

>

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /