S(k) = S(k-1) + a S(k-2) + b