Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-148-exploring-pascals-triangle.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

129 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4021000cf542c50ff14
challengeType: 5
title: 'Problem 148: Exploring Pascal''s triangle'
---
## Description
<section id='description'>
We can easily verify that none of the entries in the first seven rows of Pascal's triangle are divisible by 7:
 1
 1
 1
 1
 2
 1
 1
 3
 3
 1
 1
 4
 6
 4
 1
 1
 5
10
10
 5
 1
1
 6
15
20
15
 6
 1
However, if we check the first one hundred rows, we will find that only 2361 of the 5050 entries are not divisible by 7.
Find the number of entries which are not divisible by 7 in the first one billion (109) rows of Pascal's triangle.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler148()</code> should return 2129970655314432.
testString: assert.strictEqual(euler148(), 2129970655314432, '<code>euler148()</code> should return 2129970655314432.');
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler148() {
// Good luck!
return true;
}
euler148();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>