We have the equation $$x_n = a^nx_0+b\,\left(\dfrac{1-a^n}{1-a}\right).$$
I had to find the solution if $a=1$ and $a=-1$
For $a=1$ we must divide by $0$ which is of course impossible, but I wonder; does that render $a=1$ 'solutionless' or does that term just disappear, leaving $x_n = x_0$ for $a=1$?
Am I correct to say that for $a=-1$ we have the solution $x_n = - x_0 + B$ for uneven $n$ and $x_0$ for even $n$?