The environmental history of group and cluster galaxies in a Λ cold dark matter universe | Synapse