f(x) = f(x-1)*b