A mass suspended on a vertical spring oscillates with a period of 0.5s. When the mass is allowed to hang at rest