help me solve this equation f[k = af[k-1 + an