Red giant brightness so common on both types of stars. Red giants are evolved from main-sequence stars with masses in the range from about to around . When a star initially forms from a collapsing molecular cloud in the interstellar medium, it contains primarily hydrogen and helium, with trace amounts of "metals" (in stellar structure, this simply refers to "any" element that is not hydrogen or helium i.e. atomic number greater than 2). These elements are all uniformly mixed throughout the star. The star reaches the main sequence when the core reaches a temperature high enough to begin fusing hydrogen (a few
Planetary system and B typically rotate very quickly, which makes it very difficult to measure the small Doppler shifts induced by orbiting planets because the spectral lines are very broad. However, this type of massive star eventually evolves into a cooler red giant that rotates more slowly and thus can be measured using the radial-velocity method. A few tens of planets have been found around red giants. Observations using the Spitzer Space Telescope indicate that extremely massive stars of spectral category O, which are much hotter than the Sun, produce a photo-evaporation effect that inhibits planetary formation. When the O-type star goes