To solve this problem it is necessary to apply the concepts related to the conservation of kinetic and potential energy, that is to say
[tex]KE = PE[/tex]
Where,
KE = Kinetic Energy
PE = Potential Energy (in a Spring)
Using the expression we have that
[tex]\frac{1}{2}kx^2 = mgh[/tex]
Here,
k = Spring constant
x = Displacement
m = mass
g = Gravitational acceleration
h = Height
Re-arrange to find the displacement,
[tex]x = \sqrt{\frac{2mgh}{k}}[/tex]
[tex]x = \sqrt{\frac{2(13000)(10)}{1*10^6}}[/tex]
[tex]x = 0.5099m[/tex]
Therefore the maximum distance the spring is compressed around to 0.5m