On the dynamics of a beam partially supported by an elastic foundation: an exact solution-set