A1 - the magnitude system

m=−2.5log10⁡(F)+c

where, F is the flux, and c is a constant (not the speed of light)

F=L4πd2

where, L is the luminosity, and d is the distance

m1−m2=−2.5log10⁡F1F2 M=−2.5log10⁡F′+cF′=L4πd′2,d′=10pcM=−2.5log10⁡(L4πd′2)M=−2.5log10⁡F−2.5log10⁡(dd′)2M=m−5log10⁡(dd′) DM=m−M=5log10⁡(d10pc)