2018-09-30 22:01:58 +00:00
---
id: 5900f3aa1000cf542c50febd
title: 'Problem 62: Cubic permutations'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 302174
2021-01-13 02:31:00 +00:00
dashedName: problem-62-cubic-permutations
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2020-02-28 12:39:47 +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.
2018-09-30 22:01:58 +00:00
Find the smallest cube for which exactly five permutations of its digits are cube.
2020-02-28 12:39:47 +00:00
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
`cubicPermutations()` should return a number.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert(typeof cubicPermutations() === 'number');
```
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
`cubicPermutations()` should return 127035954683.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert.strictEqual(cubicPermutations(), 127035954683);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
2020-02-28 12:39:47 +00:00
function cubicPermutations() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
2020-02-28 12:39:47 +00:00
cubicPermutations();
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```