image thumbnail

Fermat Last Theorem

version (1.33 KB) by Prabhakar Subrahmanyam
Generates Fermat Numbers, type "help fermat".


Updated 30 May 2003

No License

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

Cite As

Prabhakar Subrahmanyam (2022). Fermat Last Theorem (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!