# Add new comment

A game you're almost certain to lose...

What are the challenges of communicating from the frontiers of mathematical research, and why should we be doing it?

Celebrate Pi Day with the stars of our podcast,

*Maths on the move*!Maths meets politics as early career mathematicians present their work at the Houses of Parliament.

Celebrate this year's International Women's Day with some of the articles and podcasts we have produced with women mathematicians over the last year!

The following algorithm may be used to find ALL Pythagorean Triples. And you find ONLY Pythagorean Triples. No need to check for correctness.

- Start with an even square number (4,16,36,64,100 etc.).

- Divide it by 2 you get (2,8,18,32,50 etc.)

In the continued description, I use 36 (6^^2) as example

- Factorize it in pairs included the factorization where 1 is one of the factors you get the following pairs:

(1,18), (2,9), (3,6)

Each pair will generate a Pythagorean triple as follows) (example using (1,18)):

a= 1+6 (the originating number squared)

b=18+6

c=1+18+6

giving the triple (7,24,25)

How to find this algorithm, see link

http://fermatslibrary.com/p/56b57e1c

BTW, this is probably Fermat's own first step on how he proved his last theorem.