LCM Problem

Revision en1, by wretched, 2020-04-27 07:00:45

I have to count the sum where sum is LCM(1,N)+LCM(2,N)....+LCM(N,N). There also will be test case, T<=50000 and N<=1000000.Now I want to generate the sum for each number.How can I solve this,help me.


  Rev. Lang. By When Δ Comment
en1 English wretched 2020-04-27 07:00:45 212 Initial revision (published)