(noch nicht übersetzt)

Problem 904

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)=Nn=1f(3n,L).
You are given F(10,106)=16684370.

Find F(45000,1010).