How do we sum LCM for class 6th
Answers
Answered by
2
ANSWER.......
................
...
..... · + LCM(n,n), where LCM(i,n) denotes the Least Common Multiple of the integers i and n. Input : The first line contains T the number of test cases. Output : Output T lines, one for each test case, containing the required sum. Sample Input : 3 1 2 5. Sample Output : 1 4 55. Constraints : 1 <= T <= 300000.
..........
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Please mark the answer as brain list answer
Similar questions