* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
		
			
				
	
	
		
			56 lines
		
	
	
		
			886 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			886 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
id: 5900f3b81000cf542c50fecb
 | 
						|
title: 'Problem 76: Counting summations'
 | 
						|
challengeType: 5
 | 
						|
forumTopicId: 302189
 | 
						|
dashedName: problem-76-counting-summations
 | 
						|
---
 | 
						|
 | 
						|
# --description--
 | 
						|
 | 
						|
It is possible to write five as a sum in exactly six different ways:
 | 
						|
 | 
						|
<div style='margin-left: 4em;'>
 | 
						|
  4 + 1<br>
 | 
						|
  3 + 2<br>
 | 
						|
  3 + 1 + 1<br>
 | 
						|
  2 + 2 + 1<br>
 | 
						|
  2 + 1 + 1 + 1<br>
 | 
						|
  1 + 1 + 1 + 1 + 1<br>
 | 
						|
</div>
 | 
						|
 | 
						|
How many different ways can one hundred be written as a sum of at least two positive integers?
 | 
						|
 | 
						|
# --hints--
 | 
						|
 | 
						|
`countingSummations()` should return a number.
 | 
						|
 | 
						|
```js
 | 
						|
assert(typeof countingSummations() === 'number');
 | 
						|
```
 | 
						|
 | 
						|
`countingSummations()` should return 190569291.
 | 
						|
 | 
						|
```js
 | 
						|
assert.strictEqual(countingSummations(), 190569291);
 | 
						|
```
 | 
						|
 | 
						|
# --seed--
 | 
						|
 | 
						|
## --seed-contents--
 | 
						|
 | 
						|
```js
 | 
						|
function countingSummations() {
 | 
						|
 | 
						|
  return true;
 | 
						|
}
 | 
						|
 | 
						|
countingSummations();
 | 
						|
```
 | 
						|
 | 
						|
# --solutions--
 | 
						|
 | 
						|
```js
 | 
						|
// solution required
 | 
						|
```
 |