RSolve[x[t + 1] == (1 - 1/n) x[t] + t/n, x[t], t]