28 lines
495 B
Markdown
28 lines
495 B
Markdown
---
|
||
id: 5900f4e81000cf542c50fffa
|
||
title: 问题379:最少共同的多重计数
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
设f(n)为具有x和y正整数的耦合数(x,y),x≤y,x和y的最小公倍数等于n。
|
||
|
||
令g为f的求和函数,即:g(n)=Σf(i),1≤i≤n。
|
||
|
||
你得到g(106)= 37429395。
|
||
|
||
找到g(1012)。
|
||
|
||
# --hints--
|
||
|
||
`euler379()`应该返回132314136838185。
|
||
|
||
```js
|
||
assert.strictEqual(euler379(), 132314136838185);
|
||
```
|
||
|
||
# --solutions--
|
||
|