IdentifySequence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


IdentifySequence

find a formula for the nth term of a given integer sequence

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

IdentifySequence(L)

IdentifySequence(L,n)

IdentifySequence(L,options)

Parameters

L

-

list of integers

n

-

symbol

output

-

(optional) output = "expression", "procedure", or "nextterm"

start

-

(optional) start = 0 or 1

Description

• 

Given an integer sequence, this command attempts to find a formula for the nth term of that sequence.   

• 

Behind the scenes, this command uses gfun[listtorec] and rsolve to identify the sequence and generate the formula.  

• 

Only sequences that can be represented as a a linear recurrence with polynomial coefficients are supported.  Not all computed formulas will lead to integer sequences when computed beyond the given number of terms; care must be taken to understand and assess the generated result.

• 

The output option can be used to control the expression returned.

  

output="expression":  This is the default; an expression is returned

  

output="procedure":  Using this option will cause IdentifySequence to return a univariate procedure, which when invoked with a positive integer n, will return the nth term in the sequence.   

  

output="nextterm":  This will cause the next integer term in the sequence to be returned.

• 

A second argument is only required for the default output.  It specifies the variable to be used in the generated expression.

• 

When the start=0 option is supplied, the first entry of the sequence will be considered as n=0 instead of the default, n=1.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

Compatibility

• 

The IdentifySequence command was introduced in Maple 2025.

• 

For more information on Maple 2025 changes, see Updates in Maple 2025.

See Also

GAMMA

gfun

gfun[listtorec]

identify

rsolve

 


Download Help Document