The decomposition of certain group representations