Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-148-exploring-pascals-triangle.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* 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>
2021-01-12 19:31:00 -07:00

55 lines
997 B
Markdown

---
id: 5900f4021000cf542c50ff14
title: 'Problem 148: Exploring Pascal''s triangle'
challengeType: 5
forumTopicId: 301777
dashedName: problem-148-exploring-pascals-triangle
---
# --description--
We can easily verify that none of the entries in the first seven rows of Pascal's triangle are divisible by 7:
<pre>
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
</pre>
However, if we check the first one hundred rows, we will find that only 2361 of the 5050 entries are not divisible by 7.
# --instructions--
Find the number of entries which are not divisible by 7 in the first one billion (10<sup>9</sup>) rows of Pascal's triangle.
# --hints--
`euler148()` should return 2129970655314432.
```js
assert.strictEqual(euler148(), 2129970655314432);
```
# --seed--
## --seed-contents--
```js
function euler148() {
return true;
}
euler148();
```
# --solutions--
```js
// solution required
```