How do I solve the following recurrence relation and what kind is it ? $ a_n = a_{n-1} + c $ ?
where c is constant
Can this relation be considered non-homogenous as $ F(n) = c.n^0 $ ?
How do I solve the following recurrence relation and what kind is it ? $ a_n = a_{n-1} + c $ ?
where c is constant
Can this relation be considered non-homogenous as $ F(n) = c.n^0 $ ?
This is indeed a non-homogeneous relation, the simplest you can think of.
Starting from
$$a_1=a_0+c,$$ you have $$a_2=a_1+c=a_0+2c,\\ a_3=a_2+c=a_0+3c\\ a_4=a_3+c=a_0+4c\\\cdots$$
Do I need to continue ?
The standard way to solve a linear recurrence is by
$$a_n=a_{n-1},$$ i.e. by recurrence $$a_n=a_0.$$
$$a_n=a_0+cn.$$