1.2 KiB
1.2 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f51d1000cf542c51002f | 5 | Problem 433: Steps in Euclid"s algorithm | Problema 433: Etapas no algoritmo de Euclides |
Description
Nós temos E (1,1) = 1, E (10,6) = 3 e E (6,10) = 4.
Defina S (N) como a soma de E (x, y) para 1 ≤ x, y ≤ N. Temos S (1) = 1, S (10) = 221 e S (100) = 39826.
Encontre S (5 · 106).
Instructions
Tests
tests:
- text: <code>euler433()</code> deve retornar 326624372659664.
testString: 'assert.strictEqual(euler433(), 326624372659664, "<code>euler433()</code> should return 326624372659664.");'
Challenge Seed
function euler433() {
// Good luck!
return true;
}
euler433();
Solution
// solution required