On the existence of infinitely many solutions for a class of semilinear elliptic equations in R^N