Adding the lcm of 2 numbers for k times

前端 未结 0 740
青春惊慌失措
青春惊慌失措 2021-01-22 15:43

I need to add the LCM of 2 numbers k amount of times

∑1≤i≤k∑1≤j≤k lcm(i,j)

so i and j go from 1 to k and i need to get the sum. Rn i just have 2 for loops and calc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题