Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-281-pizza-toppings.russian.md

56 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4861000cf542c50ff98
challengeType: 5
title: 'Problem 281: Pizza Toppings'
videoUrl: ''
localeTitle: 'Проблема 281: Пицца Toppings'
---
## Description
<section id="description"> Вам дана пицца (идеальный круг), которая была разрезана на m · n равных частей, и вы хотите иметь ровно одну вершину на каждом фрагменте. <p> Пусть f (m, n) обозначает количество способов, которыми вы можете иметь начинки на пицце с m различными начинками (m ≥ 2), используя каждую вершину на ровно n срезах (n ≥ 1). Отражения считаются отличными, вращений нет. </p><p> Так, например, f (2,1) = 1, f (2,2) = f (3,1) = 2 и f (3,2) = 16. f (3,2) показано ниже: </p><p> Найдите сумму всех f (m, n) таких, что f (m, n) ≤ 1015. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler281()</code> должен вернуться 1485776387445623.
testString: 'assert.strictEqual(euler281(), 1485776387445623, "<code>euler281()</code> should return 1485776387445623.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler281() {
// Good luck!
return true;
}
euler281();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>