| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | --- | 
					
						
							|  |  |  |  | id: 5900f3f11000cf542c50ff03 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | title: 'Problema 132: Fatores repunit grandes' | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | challengeType: 5 | 
					
						
							|  |  |  |  | forumTopicId: 301760 | 
					
						
							|  |  |  |  | dashedName: problem-132-large-repunit-factors | 
					
						
							|  |  |  |  | --- | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | # --description--
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | Em inglês, um número que consiste apenas de 1s é chamado de repunit. Devemos definir $R(k)$ como uma repunit de tamanho $k$. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | Por exemplo, $R(10) = 1111111111 = 11 × 41 × 271 × 9091$, e a soma desses fatores primos é 9414. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | Encontre a soma dos 40 primeiros fatores primos de $R({10}^9)$. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | # --hints--
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | `largeRepunitFactors()` deve retornar `843296`. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | ```js | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | assert.strictEqual(largeRepunitFactors(), 843296); | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | ``` | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | # --seed--
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | ## --seed-contents--
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | ```js | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | function largeRepunitFactors() { | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |   return true; | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-31 09:47:25 -07:00
										 |  |  |  | largeRepunitFactors(); | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  |  | ``` | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | # --solutions--
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | ```js | 
					
						
							|  |  |  |  | // solution required | 
					
						
							|  |  |  |  | ``` |