Project Euler > Problem 180 > Rational zeros of a function of three variables. (Java Solution)

Problem:

For any integer n, consider the three functions

f1,n(x,y,z) = xn+1 + yn+1 [−] zn+1
f2,n(x,y,z) = (xy + yz + zx)*(xn-1 + yn-1 [−] zn-1)
f3,n(x,y,z) = xyz*(xn-2 + yn-2 [−] zn-2)

and their combination

fn(x,y,z) = f1,n(x,y,z) + f2,n(x,y,z) [−] f3,n(x,y,z)

We call (x,y,z) a golden triple of order k if x, y, and z are all rational numbers of the form a / b with
0 [<] a [<] b [≤] k and there is (at least) one integer n, so that fn(x,y,z) = 0.

Let s(x,y,z) = x + y + z.
Let t = u / v be the sum of all distinct s(x,y,z) for all golden triples (x,y,z) of order 35.
All the s(x,y,z) and t must be in reduced form.

Find u + v.


Solution:

443839

Code:
The solution may include methods that will be found here: Library.java .

public interface EulerSolution{

public String run();

}
We don't have code for that problem yet! If you solved that out using Java, feel free to contribute it to our website, using our "Upload" form.


No comments :

Post a Comment

Follow Me

If you like our content, feel free to follow me to stay updated.

Subscribe

Enter your email address:

We hate spam as much as you do.

Upload Material

Got an exam, project, tutorial video, exercise, solutions, unsolved problem, question, solution manual? We are open to any coding material. Why not upload?

Upload

Copyright © 2012 - 2014 Java Problems  --  About  --  Attribution  --  Privacy Policy  --  Terms of Use  --  Contact