Can anyone suggest a shortcut to solving recurrences of the form, for example:
$2f(n) = f(n+1)+f(n-1)+3$, with $f(1)=f(-1)=0$
Sure, the homogenous solution can be solved by looking at the characteristic polynomial $r^2-2x+1$, so that in general a solution for the homogenous equation is of the form $f^h(n) = c_1+c_2n$. But how does one deal with the constant 3 in this case?
A related problem: (I). Here is a another way to do it. Rearranging the equation gives
$$ (f(n+2)-f(n+1))-( f(n+1)-f(n) )=-3 $$
$$\implies \sum_{n=0}^{n-2}(f(i+2)-f(i+1))- \sum_{n=0}^{n-2}(f(i+1)-f(i))=-3\sum_{i=0}^{n-2}1 $$
$$ \implies (f(n)-f(1)) - ( f(n-1) - f(0) ) = -3 (n-1) . $$
Applying the initial conditions gives
We repeat the above techniques (telescoping summing) on $(*)$ yields
$$ \sum_{i=1}^{n}(f(i)-f(i-1)) = -3\sum_{i=1}^{n}(i-1)=\dots. $$
I think you can finish it.