Dynamical interactions between young stellar objects and a collisional model for the origin of the stellar mass spectrum | Synapse