Magnitude Maths
Apparent magnitude is proportional to 1/d
2
The values for the graph can be found for stars of that type whose distances are known.
Animation by S.Mack &
Gif Movie Gear
Links
University of Washington USA
and another
another
and one more for good luck