Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-188-the-hyperexponentiation-of-a-number.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

1.0 KiB

id, challengeType, title
id challengeType title
5900f4291000cf542c50ff3b 5 Problem 188: The hyperexponentiation of a number

Description

The hyperexponentiation or tetration of a number a by a positive integer b, denoted by a↑↑b or ba, is recursively defined by: a↑↑1 = a, a↑↑(k+1) = a(a↑↑k).

Thus we have e.g. 3↑↑2 = 33 = 27, hence 3↑↑3 = 327 = 7625597484987 and 3↑↑4 is roughly 103.6383346400240996*10^12. Find the last 8 digits of 1777↑↑1855.

Instructions

Tests

tests:
  - text: <code>euler188()</code> should return 95962097.
    testString: assert.strictEqual(euler188(), 95962097, '<code>euler188()</code> should return 95962097.');

Challenge Seed

function euler188() {
  // Good luck!
  return true;
}

euler188();

Solution

// solution required