Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-136-singleton-difference.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.0 KiB
Raw Blame History

id, challengeType, title, forumTopicId
id challengeType title forumTopicId
5900f3f51000cf542c50ff07 5 Problem 136: Singleton difference 301764

Description

The positive integers, x, y, and z, are consecutive terms of an arithmetic progression. Given that n is a positive integer, the equation, x2 y2 z2 = n, has exactly one solution when n = 20: 132 102 72 = 20 In fact there are twenty-five values of n below one hundred for which the equation has a unique solution. How many values of n less than fifty million have exactly one solution?

Instructions

Tests

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

Challenge Seed

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

euler136();

Solution

// solution required