2018-10-10 18:03:03 -04:00
---
id: 5900f3aa1000cf542c50febd
2021-02-06 04:42:36 +00:00
title: 'Problem 62: Cubic permutations'
2018-10-10 18:03:03 -04:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 302174
2021-01-13 03:31:00 +01:00
dashedName: problem-62-cubic-permutations
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
The cube, 41063625 (345< sup > 3< / sup > ), can be permuted to produce two other cubes: 56623104 (384< sup > 3< / sup > ) and 66430125 (405< sup > 3< / sup > ). In fact, 41063625 is the smallest cube which has exactly three permutations of its digits which are also cube.
Find the smallest cube for which exactly five permutations of its digits are cube.
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
`cubicPermutations()` should return a number.
```js
assert(typeof cubicPermutations() === 'number');
```
`cubicPermutations()` should return 127035954683.
2018-10-10 18:03:03 -04:00
```js
2021-02-06 04:42:36 +00:00
assert.strictEqual(cubicPermutations(), 127035954683);
2018-10-10 18:03:03 -04:00
```
2021-01-13 03:31:00 +01:00
# --seed--
## --seed-contents--
```js
function cubicPermutations() {
return true;
}
cubicPermutations();
```
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
```