Mean distance in a tree

Abstract We characterize the quantities which can arise as the mean distance in a tree, giving in each case the number of nonisomorphic trees with the given mean distance. In particular, we show that every rational r≥2 is the mean distance in some tree, solving a problem posed by Hendry.