Ordinary generating function of a recurrence (source code)

= Ordinary generating function of a recurrence

For a sequence $(u_n)$, the ordinary generating function is
$$
G(x)=\sum_{n\geq0}u_nx^n.
$$
Multiplying a linear recurrence by $x^n$ and summing converts shifts of the sequence into polynomial multiples of $G$.