Rule of three (mathematics)