The formula to calculate [latex]D = a_n - a_{n-1}[/latex]