freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-296-angular-bisecto...

989 B

id challengeType title
5900f4941000cf542c50ffa7 5 Problem 296: Angular Bisector and Tangent

Description

Given is an integer sided triangle ABC with BC ≤ AC ≤ AB.k is the angular bisector of angle ACB.m is the tangent at C to the circumscribed circle of ABC.n is a line parallel to m through B. The intersection of n and k is called E.

How many triangles ABC with a perimeter not exceeding 100 000 exist such that BE has integral length?

Instructions

Tests

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

Challenge Seed

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

euler296();

Solution

// solution required