61 lines
		
	
	
		
			1018 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1018 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f3891000cf542c50fe9c
 | |
| challengeType: 5
 | |
| title: 'Problem 29: Distinct powers'
 | |
| videoUrl: ''
 | |
| localeTitle: ''
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| undefined
 | |
| 
 | |
| ## Instructions
 | |
| undefined
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: ''
 | |
|     testString: 'assert.strictEqual(distinctPowers(15), 177, "<code>distinctPowers(15)</code> should return 177.");'
 | |
|   - text: ''
 | |
|     testString: 'assert.strictEqual(distinctPowers(20), 324, "<code>distinctPowers(20)</code> should return 324.");'
 | |
|   - text: ''
 | |
|     testString: 'assert.strictEqual(distinctPowers(25), 519, "<code>distinctPowers(25)</code> should return 519.");'
 | |
|   - text: ''
 | |
|     testString: 'assert.strictEqual(distinctPowers(30), 755, "<code>distinctPowers(30)</code> should return 755.");'
 | |
| 
 | |
| ```
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Challenge Seed
 | |
| <section id='challengeSeed'>
 | |
| 
 | |
| <div id='js-seed'>
 | |
| 
 | |
| ```js
 | |
| function distinctPowers(n) {
 | |
|   // Good luck!
 | |
|   return n;
 | |
| }
 | |
| 
 | |
| distinctPowers(30);
 | |
| 
 | |
| ```
 | |
| 
 | |
| </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Solution
 | |
| <section id='solution'>
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 | |
| </section>
 |