The Online Encyclopedia for Integer Sequences, oeis.org, gives this recurrence for sequence A000159:
Here are some initial values:
When init contains more initial conditions than necessary, MinimalRecurrence uses R to check them, which helps to detect mistakes.
Assuming the input R is correct, the output MinRec will be the recurrence with proved minimal order. A closed form expression for a(n) can be computed as follows: MinRec has a second order right factor that can be solved in closed form, and the remaining solution coming from the left-factor can be rounded to a closed form expression.
If a sequence is holonomic, and if sufficiently many terms are given, then GuessRecurrence will find a recurrence. Here are the first 65 terms of sequence A001455:
The offset for this sequence is 4, which means that v = [u(4), u(5), ...] (If the optional argument offset is omitted, then GuessRecurrence assumes that it is 0 and interpret v as [u(0),u(1),...]).
Without the optional argument Minimize, the output in this example would have been larger.
After looking up these last two sequences in oeis.org we discover that A001455(n) = A047889(n) - A005802(n)
In this last example, R, dvar, and init were not listed as separately in the input, but MinimalRecurrence (and SumDecompose) can deduce them when the set S has only one dependent variable, one recurrence relation, and all remaining elements are initial conditions.