64 lines
918 B
Markdown
64 lines
918 B
Markdown
|
---
|
||
|
id: 5
|
||
|
localeTitle: 5900f4861000cf542c50ff99
|
||
|
challengeType: 5
|
||
|
title: 'Problem 282: The Ackermann function'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
Para enteros no negativos m, n, la función de Ackermann A (m, n) se define como sigue:
|
||
|
|
||
|
|
||
|
|
||
|
Para el ejemplo A (1, 0) = 2, A (2, 2) = 7 y A ( 3, 4) = 125.
|
||
|
|
||
|
|
||
|
Encuentra A (n, n) y da tu respuesta mod 148.
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler282()</code> debe devolver 1098988351.
|
||
|
testString: 'assert.strictEqual(euler282(), 1098988351, "<code>euler282()</code> should return 1098988351.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler282() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler282();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|