Which function gives the correct recursive formula for the sequence?

2, 7, 12, 17, 22, 27
A. a1 = 2; an = an −1 + 7
B. a1 = 7; an = an−1 + 2
C. a1 = 5; an = an −1 +2
D. a1 = 2; an = an −1 +5

The correct recursive formula for the sequence is:

D. a1 = 2; an = an − 1 + 5