Fibonacci and Lucas sequences The sequence 0, 1, 1, 2, 3, 5, 8, 13, ... of
Fibonacci numbers is constant-recursive of order 2 because it satisfies the recurrence F_n = F_{n-1} + F_{n-2} with F_0 = 0, F_1 = 1. For example, F_2 = F_1 + F_0 = 1 + 0 = 1 and F_6 = F_5 + F_4 = 5 + 3 = 8. The sequence 2, 1, 3, 4, 7, 11, ... of
Lucas numbers satisfies the same recurrence as the Fibonacci sequence but with initial conditions L_0 = 2 and L_1 = 1. More generally, every
Lucas sequence is constant-recursive of order 2.
Arithmetic progressions For any a and any r \ne 0, the
arithmetic progression a, a+r, a+2r, \ldots is constant-recursive of order 2, because it satisfies s_n = 2s_{n-1} - s_{n-2}. Generalizing this, see
polynomial sequences below.
Geometric progressions For any a \ne 0 and r, the
geometric progression a, a r, a r^2, \ldots is constant-recursive of order 1, because it satisfies s_n = r s_{n-1}. This includes, for example, the sequence 1, 2, 4, 8, 16, ... as well as the rational number sequence 1, \frac12, \frac14, \frac18, \frac{1}{16}, ....
Eventually periodic sequences A sequence that is eventually periodic with period length \ell is constant-recursive, since it satisfies s_n = s_{n-\ell} for all n \geq d, where the order d is the length of the initial segment including the first repeating block. Examples of such sequences are 1, 0, 0, 0, ... (order 1) and 1, 6, 6, 6, ... (order 2).
Polynomial sequences A sequence defined by a polynomial s_n = a_0 + a_1 n + a_2 n^2 + \cdots + a_d n^d is constant-recursive. The sequence satisfies a recurrence of order d + 1 (where d is the
degree of the polynomial), with coefficients given by the corresponding element of the
binomial transform. The first few such equations are : s_n = 1 \cdot s_{n-1} for a degree 0 (that is, constant) polynomial, : s_n = 2\cdot s_{n-1} - 1\cdot s_{n-2} for a degree 1 or less polynomial, : s_n = 3\cdot s_{n-1} - 3\cdot s_{n-2} + 1\cdot s_{n-3} for a degree 2 or less polynomial, and : s_n = 4\cdot s_{n-1} - 6\cdot s_{n-2} + 4\cdot s_{n-3} - 1\cdot s_{n-4} for a degree 3 or less polynomial. A sequence obeying the order-
d equation also obeys all higher order equations. These identities may be
proved in a number of ways, including via the theory of
finite differences. Any sequence of d + 1 integer, real, or complex values can be used as initial conditions for a constant-recursive sequence of order d + 1. If the initial conditions lie on a polynomial of degree d - 1 or less, then the constant-recursive sequence also obeys a lower order equation.
Enumeration of words in a regular language Let L be a
regular language, and let s_n be the number of words of length n in L. Then (s_n)_{n=0}^\infty is constant-recursive. For example, s_n = 2^n for the language of all binary strings, s_n = 1 for the language of all unary strings, and s_n = F_{n+2} for the language of all binary strings that do not have two consecutive ones. More generally, any function accepted by a
weighted automaton over the unary alphabet \Sigma = \{a\} over the
semiring (\mathbb{R}, +, \times) (which is in fact a
ring, and even a
field) is constant-recursive.
Other examples The sequences of
Jacobsthal numbers,
Padovan numbers,
Pell numbers, and
Perrin numbers are constant-recursive.
Non-examples The
factorial sequence 1, 1, 2, 6, 24, 120, 720, \ldots is not constant-recursive. More generally, every constant-recursive function is asymptotically bounded by an
exponential function (see #Closed-form characterization) and the factorial sequence grows faster than this. The
Catalan sequence 1, 1, 2, 5, 14, 42, 132, \ldots is not constant-recursive. This is because the
generating function of the Catalan numbers is not a
rational function (see #Equivalent definitions). ==Equivalent definitions==