I have a seemingly straightforward homogeneous second degree recurrence relationship.
$$Z(a+2) = 3 Z(a+1) - 2 Z(a) $$
If given boundary condition of $a$ at 0 and 1, I could solve it using standard methods. I won't bore people with detail here.
However, if boundary condition is given not at 0 and 1, but rather at 0 and $N$, is this still solvable? $Z(a)$ would be undefined for $a < 0 $ or $a > N$
Essentially I'm given the following. $$Z(a) = 0 \space \space \space if \space a = 0.$$ $$Z(a) = 1 \space \space \space if \space a = N$$ $$Z(a) = 3 Z(a-1) - 2 Z(a-2) \space \space \space if \space 0 < a < N $$