GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 6(a)

Solve an affine recurrence

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 1998 paper

GATE 1998, Q6(a) Descriptive
Report issue

Recurrences & Generating Functions

Question 6(a), GATE 1998: Solve x_n=2x_(n−1)−1 for n>1, with x_1=2.
Question 6(a), GATE 1998: Solve x_n=2x_(n−1)−1 for n>1, with x_1=2.
Tap to enlarge
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.

Original paper, page 6