43 lines
		
	
	
		
			854 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			43 lines
		
	
	
		
			854 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|   | --- | |||
|  | id: 5900f3f11000cf542c50ff03 | |||
|  | title: '問題 132: 巨大なレピュニット数の因数' | |||
|  | challengeType: 5 | |||
|  | forumTopicId: 301760 | |||
|  | dashedName: problem-132-large-repunit-factors | |||
|  | --- | |||
|  | 
 | |||
|  | # --description--
 | |||
|  | 
 | |||
|  | 1 のみで構成される数はレピュニット数と呼ばれます。 ここでは、長さ $k$ のレピュニット数を $R(k)$ とします。 | |||
|  | 
 | |||
|  | 例えば、$R(10) = 1111111111 = 11 × 41 × 271 × 9091$ で、これらの素因数の和は 9414 です。 | |||
|  | 
 | |||
|  | $R({10}^9)$ の最初の 40 個の素因数の和を求めなさい。 | |||
|  | 
 | |||
|  | # --hints--
 | |||
|  | 
 | |||
|  | `largeRepunitFactors()` は `843296` を返す必要があります。 | |||
|  | 
 | |||
|  | ```js | |||
|  | assert.strictEqual(largeRepunitFactors(), 843296); | |||
|  | ``` | |||
|  | 
 | |||
|  | # --seed--
 | |||
|  | 
 | |||
|  | ## --seed-contents--
 | |||
|  | 
 | |||
|  | ```js | |||
|  | function largeRepunitFactors() { | |||
|  | 
 | |||
|  |   return true; | |||
|  | } | |||
|  | 
 | |||
|  | largeRepunitFactors(); | |||
|  | ``` | |||
|  | 
 | |||
|  | # --solutions--
 | |||
|  | 
 | |||
|  | ```js | |||
|  | // solution required | |||
|  | ``` |