Weird identity for a graph
Source: Tuymaada 2023 Senior P2
July 7, 2023
combinatorics
Problem Statement
In a graph with vertices every two vertices are connected by a unique path. For each two vertices and , let denote the distance
between and , i.e. the number of edges in the path connecting these two vertices, and denote the degree of a vertex . Let be the sum of pairwise distances between the vertices, and the sum of weighted pairwise distances: . Prove that .