genfunc
rgf_term
finds values of terms in a sequence
Calling Sequence
Parameters
Description
Examples
rgf_term(Fz, z, n)
Fz
-
rational generating function of z
z
name, generating function variable
n
integer, index of term to evaluate
This procedure finds the value of the nth term in the sequence encoded by the generating function Fz.
The value FAIL is returned if Fz is a trivial rational generating function.
The command with(genfunc,rgf_term) allows the use of the abbreviated form of this command.
with⁡genfunc:
rgf_term⁡11−2⁢z,z,100
1267650600228229401496703205376
rgf_term⁡z1−z2,z,1001
1001
rgf_term⁡11−a⁢z,z,26
a26
rgf_term⁡11−y−y⁢z,z,58
−y58y−159
See Also
genfunc/rgf_expand
Download Help Document