freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-379-least-common-multiple-count.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

966 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4e81000cf542c50fffa 5 false Problem 379: Least common multiple count 302041

Description

Let f(n) be the number of couples (x,y) with x and y positive integers, x ≤ y and the least common multiple of x and y equal to n.

Let g be the summatory function of f, i.e.: g(n) = ∑ f(i) for 1 ≤ i ≤ n.

You are given that g(106) = 37429395.

Find g(1012).

Instructions

Tests

tests:
  - text: <code>euler379()</code> should return 132314136838185.
    testString: assert.strictEqual(euler379(), 132314136838185);

Challenge Seed

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

euler379();

Solution

// solution required