Previous Up Next

6.13.2  Values of a recurrence relation or a system: seqsolve

(See also Section 6.13.3.)

The seqsolve command finds the terms of a recurrence relation.

For example, if a recurrence relation is defined by un+1 = f(un,n) with u0 = a, the arguments to seqsolve will be f(x,n), [x,n] and a. If the recurrence relation is defined by un+2 = g(un,un+1,n) with u0 = a and u1 = b, the arguments to seqsolve will be g(x,y,n), [x,y,n] and [a,b].

The recurrence relation must have a homogeneous linear part, the nonhomogeneous part must be a linear combination of a polynomials in n times geometric terms in n.


Examples.


Previous Up Next