Existence of infinitely many solutions for an anisotropic equation using genus theory