Given f(x)=x^3-7x+k, and the remainder when f(x) is divided by x-5 is 78, then what is the value of k?