Fixed `k+1` => `k + 1` to follow style guide.