56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
|
---
|
||
|
id: 5900f4291000cf542c50ff3b
|
||
|
challengeType: 5
|
||
|
title: 'Problem 188: The hyperexponentiation of a number'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Problema 188: A hiperexponenciação de um número'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> A hiperexponenciação ou tetração de um número a por um inteiro positivo b, denotado por ↑↑b ou ba, é recursivamente definido por: a a 1 = a, a ↑↑ (k + 1) = a (a ↑↑ k ). <p> Assim, temos, por exemplo, 3 ↑↑ 2 = 33 = 27, portanto, 3 ↑↑ 3 = 327 = 7625597484987 e 3 ↑↑ 4 é aproximadamente 103,6383346400240996 * 10 ^ 12. Encontre os últimos 8 dígitos de 1777 a 1855. </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler188()</code> deve retornar 95962097.
|
||
|
testString: 'assert.strictEqual(euler188(), 95962097, "<code>euler188()</code> should return 95962097.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler188() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler188();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|