Energy in spring:
E = ½k · x²; where x = 0.15m
From coefficient of friction,
F = µ · N = µ · mg; where m = 5kg and g = 9.807m/s²
Work done each pass =
W = ∫Fdx = Force · distance
Just divide E by W to see how many passes, use this to figure out where it stops.