Let's consider the following equation: $$ a_2.f(t+2) + a_1.f(t+1) + a_0.f(t+0) = g(t) $$ where $a_0,a_1,a_2$ are non zero reals and $g(t)$ is a known function.
Although it looks like an ordinary differential equation of order 2, the "changing" parts on the left part of this equation doesn't involve derivatives but rather a shift on the main variable $t$.
Question(s): what is the name of such an equation and what kind of methods do we have to find the unknown function $f(t)$ ?

This is a recursively defined sequence of the 2nd order. Assumming that $a_1\ne 0$, it becomes: $$ f(t+2) = c f(t+1)+d f(t)+h(t). $$ where $c=-a_1/a_2$ and $d=-a_0/a_2$, and also $h(t)=-g(t)/a_2$. Let $\lambda, \mu$ be the zeroes of the quadratic equation $x^2-cx-d=0$, then $$ f(t+2) = (\lambda+\mu) f(t+1)+\lambda\mu f(t)+h(t), $$ and hence $$ f(t+2)-\lambda f(t+1) = \mu \big( f(t+1)-\lambda f(t)\big)+h(t). $$ Set $F(t)=f(t+1)-\lambda f(t),$ then $$ F(t+1) = \mu F(t)+h(t). $$ If we know $F\restriction [0,1)$, then $F$ (and consequently $f$) is obtained, the same way we obtain the formula of the recursive sequence $$ A_0=a, \quad A_{n+1}=\mu A_n+h_n, \quad n\in\mathbb N. $$