Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-466-distinct-terms-in-a-multiplication-table.md
Nicholas Carrigan (he/him) f25e3e69f8 feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +05:30

49 lines
837 B
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: 5900f53e1000cf542c510051
title: 'Problem 466: Distinct terms in a multiplication table'
challengeType: 5
forumTopicId: 302141
dashedName: problem-466-distinct-terms-in-a-multiplication-table
---
# --description--
Let P(m,n) be the number of distinct terms in an m×n multiplication table.
For example, a 3×4 multiplication table looks like this:
× 12341 12342 24683 36912
There are 8 distinct terms {1,2,3,4,6,8,9,12}, therefore P(3,4) = 8.
You are given that: P(64,64) = 1263, P(12,345) = 1998, and P(32,1015) = 13826382602124302.
Find P(64,1016).
# --hints--
`euler466()` should return 258381958195474750.
```js
assert.strictEqual(euler466(), 258381958195474750);
```
# --seed--
## --seed-contents--
```js
function euler466() {
return true;
}
euler466();
```
# --solutions--
```js
// solution required
```