We propose a general formula involving n points in an Euclidean space, which generalizes, on one hand, a well-known formula for the medians of a triangle and, on the other hand, two other formulas involving either the medians, or the bimedians of a tetrahedron.