Motivated by a result of [Lucio R. Berrone: The associativity of the Pythagorean law, Amer. Math. Monthly 116 (2009), 936-939] we deal with the functional equation
and its variants to distinguish the classical Pythagorean theorem from among its numerous abstract generalizations.