Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-281-pizza-toppings.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

67 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4861000cf542c50ff98
challengeType: 5
isHidden: false
title: 'Problem 281: Pizza Toppings'
forumTopicId: 301932
---
## Description
<section id='description'>
You are given a pizza (perfect circle) that has been cut into m·n equal pieces and you want to have exactly one topping on each slice.
Let f(m,n) denote the number of ways you can have toppings on the pizza with m different toppings (m2), using each topping on exactly n slices (n1). Reflections are considered distinct, rotations are not.
Thus, for instance, f(2,1)=1, f(2,2)=f(3,1)=2 and f(3,2)=16. f(3,2) is shown below:
Find the sum of all f(m,n) such that f(m,n)1015.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler281()</code> should return 1485776387445623.
testString: assert.strictEqual(euler281(), 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>