a star that explodes, increasing in brightness by millions of times for a few weeks or months and throwing off most of its mass