Calculation of high-order harmonic generation spectrum and Floquet resonance states using the dynamical symmetry