a_n=(1/(1-p))a_{n-1}-p/(1-p)a_{n-2}