Whoops, it was supposed to be like n - 1, not n + 1.