43 lines
688 B
Markdown
43 lines
688 B
Markdown
---
|
||
id: 5900f51e1000cf542c510030
|
||
title: 'Problema 432: Soma de totientes'
|
||
challengeType: 5
|
||
forumTopicId: 302103
|
||
dashedName: problem-432-totient-sum
|
||
---
|
||
|
||
# --description--
|
||
|
||
Considere $S(n, m) = \sum φ(n × i)$ para $1 ≤ i ≤ m$. ($φ$ é a função totiente de Euler)
|
||
|
||
Você é informado de que $S(510.510,{10}^6) = 45.480.596.821.125.120$.
|
||
|
||
Encontre $S(510.510, {10}^{11})$. Dê os últimos 9 algarismos da sua resposta.
|
||
|
||
# --hints--
|
||
|
||
`totientSum()` deve retornar `754862080`.
|
||
|
||
```js
|
||
assert.strictEqual(totientSum(), 754862080);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function totientSum() {
|
||
|
||
return true;
|
||
}
|
||
|
||
totientSum();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|