← Complete problem index

PROJECT EULER · #0904

Pythagorean Angle

Statement only · UnsolvedOriginal problem ↗

Given a right-angled triangle with integer sides, the smaller angle formed by the two medians drawn on the the two perpendicular sides is denoted by θ.

0904_Pythagorean_angle.jpg

Let f(α,L) denote the sum of the sides of the right-angled triangle minimizing the absolute difference between θ and α among all right-angled triangles with integer sides and hypotenuse not exceeding L.
If more than one triangle attains the minimum value, the triangle with the maximum area is chosen. All angles in this problem are measured in degrees.

For example, f(30,102)=198 and f(10,106)=1600158.

Define F(N,L)=n=1Nf(n3,L).
You are given F(10,106)=16684370.

Find F(45000,1010).

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.