While studying Book II of the Arithmetica Fermat came upon a whole series of observations, problems, and solutions that concerned Pythagoras’s theorem and Pythagorean triples. Fermat was struck by the variety and sheer quantity of Pythagorean triples.