freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-188-the-hyperexpone...

1.2 KiB

id challengeType title videoUrl localeTitle
5900f4291000cf542c50ff3b 5 Problem 188: The hyperexponentiation of a number Problema 188: La hiperexposición de un número.

Description

La hipereexposición o tetración de un número a por un entero positivo b, denotado por ↑↑ b o ba, se define recursivamente por: a ↑↑ 1 = a, a ↑↑ (k + 1) = a (a ↑↑ k ).

Así tenemos, por ejemplo, 3 ↑↑ 2 = 33 = 27, por lo que 3 ↑↑ 3 = 327 = 7625597484987 y 3 ↑↑ 4 es aproximadamente 103.6383346400240996 * 10 ^ 12. Encuentra los últimos 8 dígitos de 1777 ↑↑ 1855.

Instructions

Tests

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

Challenge Seed

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

euler188();

Solution

// solution required