When x4 + kx3 – 2x2 + x + 4 is divided by x – 3, the remainder is 16. Find the value of k.