freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-466-distinct-terms-...

72 lines
1.1 KiB
Markdown
Raw Normal View History

---
id: 5
localeTitle: 5900f53e1000cf542c510051
challengeType: 5
title: 'Problem 466: Distinct terms in a multiplication table'
---
## Description
<section id='description'>
Sea P (m, n) el número de términos distintos en una tabla de multiplicación m × n.
Por ejemplo, una tabla de multiplicar de 3 × 4 se ve así:
× 12341 12342 24683 36912
Hay 8 términos distintos {1,2,3,4,6,8,9,12}, por lo tanto P (3,4) = 8.
Te dan que:
P (64,64) = 1263,
P (12,345) = 1998, y
P (32,1015) = 13826382602124302.
Encuentra P ( 64,1016).
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler466()</code> debe devolver 258381958195474750.
testString: 'assert.strictEqual(euler466(), 258381958195474750, "<code>euler466()</code> should return 258381958195474750.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler466() {
// Good luck!
return true;
}
euler466();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>