#P3911. 最小公倍数之和
最小公倍数之和
Description
For , compute the following value.
Here, denotes the least common multiple of and .
Input Format
The first line contains an integer .
The second line contains integers .
Output Format
Output one integer in a single line, representing the required value.
2
2 3
17
Hint
Constraints:
- For 30% of the testdata, , .
- For another 30% of the testdata, , .
- For 100% of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号