how would you solve f(n)=f(n-1)+d

when n=1 and d=2?

f(1) = f(0) + 2

You can not say much more because we need a starting point
eg
f(0) = f(-1) + 2
f(-1) = f(-2) + 2 and so on