64 lines
1.1 KiB
Markdown
64 lines
1.1 KiB
Markdown
|
---
|
||
|
id: 5900f3aa1000cf542c50febd
|
||
|
challengeType: 5
|
||
|
title: 'Problem 62: Cubic permutations'
|
||
|
forumTopicId: 302174
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
|
||
|
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.
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- 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);
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function cubicPermutations() {
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
cubicPermutations();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
|
||
|
</section>
|