\[D_{n}=\frac{1}{D_{n-1}a_{n}+b_{n}},\]