Answer b)
Types of Recurrence Relations
Linear Homogeneous Recurrence Relation
General form: an=c1an−1+c2an−2+⋯+ cnkn−k
Only involves previous terms, no extra “free” terms.
Example: an=3an−1−2an−2.
Linear Non-Homogeneous Recurrence Relation
General form: an=c1an−1+c2an−2+⋯+ ckan−k+ f(n)
Same as homogeneous, but with an extra function f(n) (non-zero).
Example: an=2an−1+n.
Nonlinear Recurrence Relation
If the terms involve powers, products, or non-linear functions of an−1, an−2, ….
Example: an= (an−1)2+3.
Quadratic Recurrence Relation
A special kind of nonlinear relation where terms involve squares, e.g., an=(an−1)2
Analyze the Given Recurrence: an = 2an-1 +n
The recurrence involves only the first previous term (an−1).
Coefficient of an−1 is 2 (linear dependence).
There is an extra term +n.
This is an explicit function of n.
This makes it non-homogeneous.
Wrong options:
a) Homogeneous → RHS must be 0.
c) Nonlinear → depends on powers/products of a_(n-1).
d) Quadratic → no quadratic term in given equation like (an−1)2 or n2