$$a_n = r\,a_{n-1} + d \;\implies\; a_n = r^{\,n}\!\left(a_0 - \frac{d}{1-r}\right) + \frac{d}{1-r}\quad (r \ne 1).$$
A sequence defined by each term from the previous one can often be solved into a closed form, letting you jump straight to any term without iterating.