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

1.3 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f53e1000cf542c510051 5 Problem 466: Distinct terms in a multiplication table Задача 466: Определенные термины в таблице умножения

Description

Пусть P (m, n) - число различных членов в таблице умножения m × n.

Например, таблица умножения 3 × 4 выглядит следующим образом:

× 12341 12342 24683 36912

Существует 8 различных терминов {1,2,3,4,6,8,9,12}, поэтому P (3,4) = 8.

Вам дается следующее: P (64,64) = 1263, P (12,345) = 1998 и P (32,1015) = 13826382602124302.

Найдите P (64, 1016).

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert.strictEqual(euler466(), 258381958195474750, "<code>euler466()</code> should return 258381958195474750.");'

Challenge Seed

function euler466() {
  // Good luck!
  return true;
}

euler466();

Solution

// solution required