Pythagorean theorem states that in a right triangle, the length of the hypotenuse squared is equal to the sum of the square of the lengths of the other two sides. It was first discovered in ancient China, but made famous by mathematician Pythagoras in ancient Greece, and is a very important equation in the study of geometry. It is often represented by the following equation:
where a and b are each the legs of the triangle and c is the hypotenuse.
Commander William T. Riker used the theorem to trick the android Lore in 2364. He stated the first part of the theorem and Lore completed it without thinking, revealing that he knew more than he was letting the USS Enterprise-D crew think. (TNG: "Datalore")