Problem 2370. Fermat's last theorem - again
Solution Stats
Problem Comments
-
1 Comment
David Verrelli
on 20 May 2018
Hello, Rifat. I guess, based on the Test Suite, that you are allowing _all_ integers, which is not what might be expected given that Fermat's Last Theorem traditionally involves natural numbers only (1, 2, 3, 4, ...). https://www.britannica.com/science/Fermats-last-theorem It might be worth mentioning in the Problem Statement. —DIV
Solution Comments
-
3 Comments
Lincoln Poon
on 4 Jan 2021
For the test for x=1, I think the answer should be an empty vector.
Alisio
on 4 Jan 2021
x=1 makes sense if you also consider 0. Then 0^2 + 1^2 = 1
goc3
on 6 Jan 2021
As David Verrelli pointed out, negative integers are also accepted in this problem (not only zero).
Problem Recent Solvers29
Suggested Problems
-
7016 Solvers
-
951 Solvers
-
315 Solvers
-
602 Solvers
-
3611 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!