https://s0.wp.com/latex.php?latex=%5Cdisplaystyle++%5Csum_%7Bm+%5Csim+M%3A+mn+%3D+a_%7Bq_1%7D%5C+%28q_1%29%3B+mn+%3D+a_%7Bq_2%7D%5C+%28q_2%29%3B+mn+%3D+a_r%5C+%28r%29%7D+1&bg=ffffff&fg=000000&s=0