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.
$\mathrm{with}\left(\mathrm{genfunc}\right)\:$
$\mathrm{rgf\_term}\left(\frac{1}{12z}\,z\,100\right)$
${1267650600228229401496703205376}$
$\mathrm{rgf\_term}\left(\frac{z}{{\left(1z\right)}^{2}}\,z\,1001\right)$
${1001}$
$\mathrm{rgf\_term}\left(\frac{1}{1az}\,z\,26\right)$
${{a}}^{{26}}$
$\mathrm{rgf\_term}\left(\frac{1}{1yyz}\,z\,58\right)$
${}\frac{{{y}}^{{58}}}{{\left({y}{}{1}\right)}^{{59}}}$
See Also
genfunc/rgf_expand
Download Help Document
What kind of issue would you like to report? (Optional)