Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
870 B
870 B
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f4861000cf542c50ff99 | 5 | false | Problem 282: The Ackermann function | 301933 |
Description
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.
Instructions
Tests
tests:
- text: <code>euler282()</code> should return 1098988351.
testString: assert.strictEqual(euler282(), 1098988351);
Challenge Seed
function euler282() {
// Good luck!
return true;
}
euler282();
Solution
// solution required