Stanton D. answered 03/03/21
Tutor to Pique Your Sciences Interest
So Bob L.,
The equation for the spring top is:
D(t) = - A cos (νt)
where D is position (vertical)
A is amplitude
and v is frequency
Differentiate that to find velocity, then again to find acceleration, as functions of t. You will note that there is a dependence on both v and A (to various powers!).
Losing contact means the spring acceleration at the top of the wiggle matches gravitational acceleration downwards (of the block; generally you neglect both the mass of, and the effect of gravity on, the spring itself, it doesn't deform it significantly).
Solve it from there?
-- Cheers, --Mr. d.