Number of Boomerangs
Count ordered triples of points where the first point is equally far from the other two. The visual picks each point as a pivot, groups the remaining points by squared distance, and counts ordered pairs inside each group.
Count ordered triples of points where the first point is equally far from the other two. The visual picks each point as a pivot, groups the remaining points by squared distance, and counts ordered pairs inside each group.