freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-188-the-hyperexpone...

749 B

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

--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.

--hints--

euler188() should return 95962097.

assert.strictEqual(euler188(), 95962097);

--seed--

--seed-contents--

function euler188() {

  return true;
}

euler188();

--solutions--

// solution required