James L. answered 07/31/19
High-School Math Teacher, B.S. Mathematics
Since (x-1) is a factor, 1 is a solution to your equation.
2(1)3 - k(1)2 + 4(1) -1 = 0
2 - k + 4 -1 = 0
k = 5
1 | 2 -5 4 -1
2 -3 1
2 -3 1 0
The remainder is zero, and therefore your answer for k worked out correctly!