2018-10-10 18:03:03 -04:00
---
id: 5900f4431000cf542c50ff56
2021-02-06 04:42:36 +00:00
title: 'Problem 215: Crack-free Walls'
2018-10-10 18:03:03 -04:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 301857
2021-01-13 03:31:00 +01:00
dashedName: problem-215-crack-free-walls
2018-10-10 18:03:03 -04:00
---
2020-12-16 00:37:30 -07:00
# --description--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
Consider the problem of building a wall out of 2× 1 and 3× 1 bricks (horizontal× vertical dimensions) such that, for extra strength, the gaps between horizontally-adjacent bricks never line up in consecutive layers, i.e. never form a "running crack".
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
For example, the following 9× 3 wall is not acceptable due to the running crack shown in red:
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
There are eight ways of forming a crack-free 9× 3 wall, written W(9,3) = 8.
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
Calculate W(32,10).
2018-10-10 18:03:03 -04:00
2020-12-16 00:37:30 -07:00
# --hints--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
`euler215()` should return 806844323190414.
2018-10-10 18:03:03 -04:00
```js
2020-12-16 00:37:30 -07:00
assert.strictEqual(euler215(), 806844323190414);
2018-10-10 18:03:03 -04:00
```
2021-01-13 03:31:00 +01:00
# --seed--
## --seed-contents--
```js
function euler215() {
return true;
}
euler215();
```
2020-12-16 00:37:30 -07:00
# --solutions--
2020-08-13 17:24:35 +02:00
2021-01-13 03:31:00 +01:00
```js
// solution required
```