Harmonic mean for a non-empty collection of numbers a1, a2, …, an, all different from 0, is defined as the reciprocal of the arithmetic mean of the reciprocals of the ai‍ '​s: