If n - 1 is a factor of n3 - kn? + 2n, what is the value of k.