On the infinitely many solutions of a semilinear elliptic equation