genfunc
rgf_findrecur
find recurrence for terms in a sequence
Calling Sequence
Parameters
Description
Examples
rgf_findrecur(K, seq, F, n)
K
-
positive integer, order of the recurrence
seq
list of 2K consecutive values from the sequence
F
function name for sequence
n
name, index variable for the recurrence
This function finds the homogeneous linear recurrence with constant coefficients of order K that is satisfied by seq.
If seq satisfies a recurrence of order less than K, that recurrence is found.
The command with(genfunc,rgf_findrecur) allows the use of the abbreviated form of this command.
withgenfunc:
rgf_findrecur2,1,2,3,4,t,n
tn=2tn−1−tn−2
rgf_findrecur2,1,2,4,8,s,j
sj=2sj−1
See Also
genfunc/rgf_sequence
rsolve
Download Help Document