Files
freeCodeCamp/curriculum/challenges/german/10-coding-interview-prep/project-euler/problem-272-modular-cubes-part-2.md
2023-01-23 10:14:46 -06:00

817 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f47d1000cf542c50ff8f Problem 272: Modulare Würfel, Teil 2 1 301922 problem-272-modular-cubes-part-2

--description--

Definiere für eine positive Zahl n C(n) als eine Anzahl der Ganzzahlen x, für die 1 < x < n und x^3 \equiv 1\bmod n ist.

Wenn n = 91, gibt es 8 mögliche Werte für x, nämlich: 9, 16, 22, 29, 53, 74, 79, 81. Also C(91) = 8.

Finde die Summe der positiven Zahlen n ≤ {10}^{11} für die C(n)=242.

--hints--

modularCubesTwo() sollte 8495585919506151000 zurückgeben.

assert.strictEqual(modularCubesTwo(), 8495585919506151000);

--seed--

--seed-contents--

function modularCubesTwo() {

  return true;
}

modularCubesTwo();

--solutions--

// solution required