2018-09-30 23:01:58 +01:00
---
id: 5900f3aa1000cf542c50febd
challengeType: 5
title: 'Problem 62: Cubic permutations'
2019-08-05 09:17:33 -07:00
forumTopicId: 302174
2018-09-30 23:01:58 +01:00
---
## Description
< section id = 'description' >
2020-02-28 21:39:47 +09: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 23:01:58 +01:00
Find the smallest cube for which exactly five permutations of its digits are cube.
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
< / section >
## Instructions
< section id = 'instructions' >
< / section >
## Tests
< section id = 'tests' >
```yml
2018-10-04 14:37:37 +01:00
tests:
2020-02-28 21:39:47 +09:00
- text: < code > cubicPermutations()</ code > should return a number.
testString: assert(typeof cubicPermutations() === 'number');
- text: < code > cubicPermutations()</ code > should return 127035954683.
testString: assert.strictEqual(cubicPermutations(), 127035954683);
2018-09-30 23:01:58 +01:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
2020-02-28 21:39:47 +09:00
function cubicPermutations() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2020-02-28 21:39:47 +09:00
cubicPermutations();
2018-09-30 23:01:58 +01:00
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
< / section >