2018-09-30 23:01:58 +01:00
---
id: 5900f4801000cf542c50ff92
title: 'Problem 275: Balanced Sculptures'
2020-11-27 19:02:05 +01:00
challengeType: 5
2019-08-05 09:17:33 -07:00
forumTopicId: 301925
2021-01-13 03:31:00 +01:00
dashedName: problem-275-balanced-sculptures
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2021-07-24 09:09:54 +02:00
Let us define a balanced sculpture of order $n$ as follows:
2020-11-27 19:02:05 +01:00
2021-07-24 09:09:54 +02:00
- A polyomino made up of $n + 1$ tiles known as the blocks ($n$ tiles) and the plinth (remaining tile);
- the plinth has its centre at position ($x = 0$, $y = 0$);
- the blocks have $y$-coordinates greater than zero (so the plinth is the unique lowest tile);
- the centre of mass of all the blocks, combined, has $x$-coordinate equal to zero.
2020-11-27 19:02:05 +01:00
2021-07-24 09:09:54 +02:00
When counting the sculptures, any arrangements which are simply reflections about the $y$-axis, are < u > not< / u > counted as distinct. For example, the 18 balanced sculptures of order 6 are shown below; note that each pair of mirror images (about the $y$-axis) is counted as one sculpture:
2020-11-27 19:02:05 +01:00
2021-07-24 09:09:54 +02:00
< img class = "img-responsive center-block" alt = "18 balanced sculptures of order 6" src = "https://cdn.freecodecamp.org/curriculum/project-euler/balanced-sculptures.gif" style = "background-color: white; padding: 10px;" >
2020-11-27 19:02:05 +01:00
2021-07-24 09:09:54 +02:00
There are 964 balanced sculptures of order 10 and 360505 of order 15.
2018-09-30 23:01:58 +01:00
2021-07-24 09:09:54 +02:00
How many balanced sculptures are there of order 18?
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --hints--
2018-09-30 23:01:58 +01:00
2021-07-24 09:09:54 +02:00
`balancedSculptures()` should return `15030564` .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
```js
2021-07-24 09:09:54 +02:00
assert.strictEqual(balancedSculptures(), 15030564);
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --seed--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
## --seed-contents--
2018-09-30 23:01:58 +01:00
```js
2021-07-24 09:09:54 +02:00
function balancedSculptures() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2021-07-24 09:09:54 +02:00
balancedSculptures();
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```