Explanation:
The horizontal stretch or compression for a function f(x) is given by g = f(bx) where b is a constant. If b> 0 then the graph of a function is compressed.
As it is given in the question that the function is transformed by a compression factor of 3.
Given function
The value of k will be 3 if the function is transformed by a compression factor of 3