56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f49d1000cf542c50ffb0
 | |
| challengeType: 5
 | |
| title: 'Problem 305: Reflexive Position'
 | |
| videoUrl: ''
 | |
| localeTitle: 'Problema 305: Posición reflexiva'
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| <section id="description"> Llamemos a S la cadena (infinita) que se forma al concatenar los enteros positivos consecutivos (comenzando desde 1) escritos en la base 10. Por lo tanto, S = 1234567891011121314151617181920212223242 ... <p> Es fácil ver que cualquier número aparecerá un número infinito de veces en S. </p><p> Llamemos a f (n) la posición inicial de la enésima aparición de n en S. Por ejemplo, f (1) = 1, f (5) = 81, f (12) = 271 yf (7780) = 111111365. </p><p> Encuentra ∑f (3k) para 1≤k≤13. </p></section>
 | |
| 
 | |
| ## Instructions
 | |
| <section id="instructions">
 | |
| </section>
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: <code>euler305()</code> debe devolver 18174995535140.
 | |
|     testString: 'assert.strictEqual(euler305(), 18174995535140, "<code>euler305()</code> should return 18174995535140.");'
 | |
| 
 | |
| ```
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Challenge Seed
 | |
| <section id='challengeSeed'>
 | |
| 
 | |
| <div id='js-seed'>
 | |
| 
 | |
| ```js
 | |
| function euler305() {
 | |
|   // Good luck!
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| euler305();
 | |
| 
 | |
| ```
 | |
| 
 | |
| </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Solution
 | |
| <section id='solution'>
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 | |
| </section>
 |