can anyone give me a good explanation of how to solve this spoj problem. I know it involves the use of Euler Totient Function but i am very weak in number theory so i cant figure out how it involves the use of EOF and how to solve it. Here is the problem- LCMSUM
somebody pls help
This problem can be solved using the formula given on this page:http://oeis.org/A051193
thanks :)