* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
43 lines
629 B
Markdown
43 lines
629 B
Markdown
---
|
|
id: 5900f4861000cf542c50ff99
|
|
title: 'Problem 282: The Ackermann function'
|
|
challengeType: 5
|
|
forumTopicId: 301933
|
|
dashedName: problem-282-the-ackermann-function
|
|
---
|
|
|
|
# --description--
|
|
|
|
For non-negative integers m, n, the Ackermann function A(m, n) is defined as follows:
|
|
|
|
For example A(1, 0) = 2, A(2, 2) = 7 and A(3, 4) = 125.
|
|
|
|
Find A(n, n) and give your answer mod 148.
|
|
|
|
# --hints--
|
|
|
|
`euler282()` should return 1098988351.
|
|
|
|
```js
|
|
assert.strictEqual(euler282(), 1098988351);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```js
|
|
function euler282() {
|
|
|
|
return true;
|
|
}
|
|
|
|
euler282();
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|