[math-fun] Iterated averaging of triples