freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-432-totient-sum.md

43 lines
613 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f51e1000cf542c510030
title: 'Problem 432: Totient sum'
challengeType: 5
forumTopicId: 302103
dashedName: problem-432-totient-sum
---
# --description--
Let S(n,m) = ∑φ(n × i) for 1 ≤ i ≤ m. (φ is Euler's totient function)
You are given that S(510510,106 )= 45480596821125120.
Find S(510510,1011). Give the last 9 digits of your answer.
# --hints--
`euler432()` should return 754862080.
```js
assert.strictEqual(euler432(), 754862080);
```
# --seed--
## --seed-contents--
```js
function euler432() {
return true;
}
euler432();
```
# --solutions--
```js
// solution required
```