3 ms·protip: Use Generating functions. Piece of cake if you use them for this problem.by kraemate 18y agoprotip: Use Generating functions. Piece of cake if you use them for this problem.