freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-272-modular-cubes-p...

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f47d1000cf542c50ff8f 5 Problem 272: Modular Cubes, part 2 Задача 272: Модульные кубы, часть 2

Description

Для положительного числа n определим C (n) как число целых чисел x, для которых 1

При n = 91 существует 8 возможных значений для x, а именно: 9, 16, 22, 29, 53, 74, 79, 81. Таким образом, C (91) = 8.

Найдите сумму положительных чисел n≤1011, для которых C (n) = 242.

Instructions

Tests

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

Challenge Seed

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

euler272();

Solution

// solution required