Given a triangle with side lengths of a, b, and c, where c is the longest side, which statement is true?

If b2 + c2 = a2, then the triangle is a right triangle.
If a2 + c2 = b2, then the triangle is a right triangle.
If a2 + b2 =c2, then the triangle is a right triangle.
If a2 = b2 = c2, then the triangle is a right triangle.