Recurrences & Generating Functions


Answer & solution
Answer: x_n=2^(n−1)+1. (no official key was published)
The constant fixed point of the recurrence is 1, because 1=2·1−1. Subtract it by setting yn=xn−1. Then yn=2x_(n−1)−2=2y_(n−1), while y1=1. Iterating the resulting geometric recurrence gives yn=2n−1, so xn=2n−1+1 for all n≥1.
To verify rather than merely guess the formula, its first value is 20+1=2. Assuming xn−1=2n−2+1, substitution gives 2[2n−2+1]−1=2n−1+1, completing induction. Initial values 2,3,5,9,17 agree. The exponent is n−1 rather than n because the specified initial index is 1. The subtraction trick is useful for affine recurrences generally: shift by a fixed point to expose the homogeneous geometric part.