Question: Euler's conjecture. In 1 7 6 9 Euler conjectured that there are no positive integer solutions to a 4 + b 4 + c 4
Euler's conjecture. In Euler conjectured that there are no
positive integer solutions to a b c d Noam Elkies
discovered the first counterexample
over years later. Write a program to
disprove Euler's conjecture. The brute force method using Java
will take too long namely:
i it will take too much time to find the solution using
a quadruply nested loop, and
iiii computing a will overflow a long since the
smallest such counterexample is
b Use the following idea. Iterate over all integers a and b
between and N and insert a b into a hash table. Then,
iterate over all integers c and d between and N and
search to see if d c is in the hash table. Use extended
precision integers to avoid overflow.
c Using extended precision integers can be a significant
overhead over using primitive types. Instead of inserting
a b into the hash table, insert a b modulo p where p
is some big prime, say XYZ Then, iterate over all c and d
and search for d c modulo p If there's a match, use
extended precision arithmetic to check that it isn't just an
coincidental collision. Hint: to avoid overflow when
computing a b modulo p modulo out multiples of p
after each multiplication.
d You are welcome to use Python, due the nature of very
large data types, otherwise, use BigInteger,
BigDecimal, in Java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
