Description: Decompose a group sum into projections. (Contributed by Mario Carneiro, 26-Apr-2016) (Revised by AV, 14-Jul-2019)