56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f5001000cf542c510013
 | |
| challengeType: 5
 | |
| title: 'Problem 403: Lattice points enclosed by parabola and line'
 | |
| videoUrl: ''
 | |
| localeTitle: 'Problema 403: Puntos de celosía encerrados entre parábola y línea'
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| <section id="description"> Para los enteros a y b, definimos D (a, b) como el dominio encerrado por la parábola y = x2 y la línea y = a · x + b: D (a, b) = {(x, y) | x2 ≤ y ≤ a · x + b}. <p> 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. </p><p> 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. </p><p> Encontrar S (1012). Da tu respuesta mod 108. </p></section>
 | |
| 
 | |
| ## Instructions
 | |
| <section id="instructions">
 | |
| </section>
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: <code>euler403()</code> debe devolver 18224771.
 | |
|     testString: 'assert.strictEqual(euler403(), 18224771, "<code>euler403()</code> should return 18224771.");'
 | |
| 
 | |
| ```
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Challenge Seed
 | |
| <section id='challengeSeed'>
 | |
| 
 | |
| <div id='js-seed'>
 | |
| 
 | |
| ```js
 | |
| function euler403() {
 | |
|   // Good luck!
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| euler403();
 | |
| 
 | |
| ```
 | |
| 
 | |
| </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Solution
 | |
| <section id='solution'>
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 | |
| </section>
 |