### 19.8.4 Graphing recurrent sequences

The plotseq or seqplot or graphe_suite command draws the process of finding the terms of a recurrent sequence.

- plotseq takes:
  - expr, an expression depending on a variable.
  - var=a, the variable and a beginning value. (If var=x, then the variable name can be omitted.) The a value can be replaced by a list of three elements, [a,x−,x+] where x−..x+ will be passed as the range of the variable for the graph computation.
  - n, the ending value of the variable.
- plotseq(expr,var=a,n) draws the line y=x, the graph of y=expr, and the n first terms of the recurrent sequence defined by: u0=a, un=f(un−1) where f is the function determined by expr.

#### Example

plotseq(sqrt(1+x),x=[3,0,5],5)