E(n+1)=d*E(n)+k*a^n+l, E(0)=f