2018-09-30 22:01:58 +00:00
---
id: 5900f4291000cf542c50ff3b
title: 'Problem 188: The hyperexponentiation of a number'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 301824
2021-01-13 02:31:00 +00:00
dashedName: problem-188-the-hyperexponentiation-of-a-number
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2021-07-15 13:52:14 +00:00
The hyperexponentiation or tetration of a number $a$ by a positive integer $b$, denoted by $a↑↑b$ or ${}^ba$, is recursively defined by:
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
$a↑↑1 = a$,
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
$a↑↑(k+1) = a^{(a↑↑k)}$.
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
Thus we have e.g. $3↑↑2 = 3^3 = 27$, hence $3↑↑3 = 3^{27} = 7625597484987$ and $3↑↑4$ is roughly ${10}^{3.6383346400240996 \times {10}^{12}}$. Find the last 8 digits of $1777↑↑1855$.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
`hyperexponentation()` should return `95962097` .
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
2021-07-15 13:52:14 +00:00
assert.strictEqual(hyperexponentation(), 95962097);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
2021-07-15 13:52:14 +00:00
function hyperexponentation() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
2021-07-15 13:52:14 +00:00
hyperexponentation();
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```