Find but do not solve a recurrence relation for an the numbe
Find -but do not solve- a recurrence relation for an, the number of sequences of 2s, 5s, and 7s whose terms sum to n with the condition of no subsequence of 257. Give appropriate initial conditions and find a9.
Solution
The ci are any constants and the base of the exponents are the roots to the characteristic can be verified by induction.
If the characteristic has a multiple root, this step is modified slightly.
If r is a root of multiplicity m, use (c1rn + c2nrn + c3n2rn + ... + cmnm-1rn) instead of simply (c1rn).
For example, the sequence starting 5, 0, -4, 16, 144, 640, 2240, ... satisfies the recursive relationship an = 6an-1 - 12an-2 + 8an-3.
The number of sequences of 2s, 5s, and 7s whose terms sum to n with the condition of no subsequence of 257. Give appropriate initial conditions and find a9.
The characteristic polynomial has a triple root of 2 and the closed form formula
an = 5*2n - 7*n*2n + 2*n2*2n.
a9=5(29)-7(9)(29)+2(92)(29)=53248
