Group-theoretic Algorithms for Multiphoton