1.3 KiB
1.3 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f5001000cf542c510013 | 5 | Problem 403: Lattice points enclosed by parabola and line | Problema 403: Puntos de celosía encerrados entre parábola y línea |
Description
L (a, b) se define como el número de puntos de red contenidos en D (a, b). Por ejemplo, L (1, 2) = 8 y L (2, -1) = 1.
También definimos S (N) como la suma de L (a, b) para todos los pares (a, b) de manera que el área de D (a, b) sea un número racional y | a |, | b | ≤ N. Podemos verificar que S (5) = 344 y S (100) = 26709528.
Encontrar S (1012). Da tu respuesta mod 108.
Instructions
Tests
tests:
- text: <code>euler403()</code> debe devolver 18224771.
testString: 'assert.strictEqual(euler403(), 18224771, "<code>euler403()</code> should return 18224771.");'
Challenge Seed
function euler403() {
// Good luck!
return true;
}
euler403();
Solution
// solution required