HINT : The (r-1)-th term is equal to
the sum of the first (r-1) terms MINUS the sum of the first (r-2) terms, i.e.
5*(r-1)^2-2*(r-1) - (5*(r-2)^2-2*(r-2)).
Based on this hint, you can complete the assignment on your own by simplifying this expression.