does the distance of the star of our planet impact the brightness of the star in sky?

Yes, the distance of a star from Earth does indeed impact its brightness as it appears in the sky. This effect is known as "apparent magnitude." The apparent magnitude of a star is a measure of its brightness as observed from Earth.

The apparent magnitude of a star depends on two factors: its intrinsic brightness, known as "absolute magnitude," and its distance from Earth. Absolute magnitude describes the star's actual brightness if it was located at a standard distance of 10 parsecs (about 32.6 light-years) from Earth.

When a star is closer to Earth, it appears brighter because it is relatively nearer to us and its light has less distance to travel. Similarly, when a star is farther away, it appears dimmer because its light has to travel a greater distance, spreading out over a larger area.

To determine the impact of distance on the brightness of a star, you can use the inverse square law. According to this law, the apparent brightness of a star diminishes as the square of the distance between the star and the observer increases. In simple terms, if you double the distance to a star, its apparent brightness decreases by a factor of four.

Therefore, the distance of a star from our planet does have a significant impact on its brightness as it appears in the sky.