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

1.3 KiB

id challengeType title videoUrl localeTitle
5900f4291000cf542c50ff3b 5 Problem 188: The hyperexponentiation of a number Задача 188: гиперразложение числа

Description

Гиперрезистентность или тетация числа a положительным целым числом b, обозначаемым ↑↑ b или ba, рекурсивно определяется: a ↑↑ 1 = a, a ↑↑ (k + 1) = a (a ↑↑ k ).

Таким образом, мы имеем, например, 3 ↑↑ 2 = 33 = 27, поэтому 3 ↑↑ 3 = 327 = 7625597484987 и 3 ↑↑ 4 примерно 103.6383346400240996 * 10 ^ 12. Найдите последние 8 цифр 1777 ↑↑ 1855.

Instructions

Tests

tests:
  - text: <code>euler188()</code> должен вернуть 95962097.
    testString: 'assert.strictEqual(euler188(), 95962097, "<code>euler188()</code> should return 95962097.");'

Challenge Seed

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

euler188();

Solution

// solution required