The diffuse light from Andromeda is caused by the hundreds of billions of stars that compose it. The several distinct stars that surround Andromeda’s image are actually stars in our Galaxy that are well in front of the background object.
Andromeda is frequently referred to as M31 since it is the 31st object on Messier’s list of diffuse sky objects. M31 is so distant it takes about two million years for light to reach us from there.
SEE COMPLETE TEXT