Theorem: There are no positive integers x,y,z and n>2 such that x^n+y^n=z^n
This program will print the Fermat numbers for n=2. For n=3, it's a known fact that there is no solution.
Type help fermat
Prabhakar Subrahmanyam (2022). Fermat Last Theorem (https://www.mathworks.com/matlabcentral/fileexchange/3505-fermat-last-theorem), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!