An ideal gas trapped in a generic power-law potential in any dimensional sp
ace is studied. The density of states of this system is derived. Both Fermi
and Bose gases are discussed, and their properties are derived straightfor
wardly from the density of states. [S1050-2947(99)02204-0].