Let the n points be P1,P2,…,Pn.
Let D be the set of all pairwise distances between the n points. For each d∈D, Gauss writes down ⌊log2d⌋.
Let dmin and dmax be the minimal and maximal pairwise distances among the n points.
All values written by Gauss are integers k such that 2k≤d<2k+1 for some d in D.
Thus, the set of distinct values written is contained in the set of all integers k such that 2k≤dmax and 2k+1>dmin, i.e.,
⌊log2dmin⌋≤k≤⌊log2dmax⌋
So the number of distinct values is at most ⌊log2dmax⌋−⌊log2dmin⌋+1.
Now, we bound this quantity in terms of n.
Let us fix the configuration of n points. The minimal distance dmin is the smallest distance between any two points, and the maximal distance dmax is the largest.
Let us consider the ratio dmax/dmin.
For n points in the plane, the maximal distance between any two points is at most the diameter of the convex hull of the points, and the minimal distance is at least the minimal separation between any two points.
Let us fix dmin and consider the maximal possible dmax.
Suppose all points are placed so that the minimal distance is dmin, and the maximal distance is dmax.
Consider the following: For any point Pi, the number of other points within distance 2kdmin is at most the number of points that can be packed in a disk of radius 2kdmin with pairwise separation at least dmin.
In the plane, the maximal number of points that can be packed in a disk of radius R with pairwise separation at least r is at most (r2R+1)2.
But we can use a simpler argument:
Let dmax≤Cndmin for some constant C (since the diameter of n points with minimal separation dmin is at most proportional to ndmin).
Then,
dmindmax<Cn
Therefore,
⌊log2dmax⌋−⌊log2dmin⌋+1<log2(Cn)+2
But we need to show that the number of distinct values is less than 2n.
Let us consider the following extremal configuration:
Suppose the n points are placed on a straight line with equal spacing dmin between consecutive points. Then the maximal distance is (n−1)dmin.
So,
dmindmax=n−1
Thus,
⌊log2dmax⌋−⌊log2dmin⌋+1≤⌊log2(n−1)dmin⌋−⌊log2dmin⌋+1=⌊log2(n−1)⌋+1
So the number of distinct values is at most 1+⌊log2(n−1)⌋.
But in general, for any configuration, the number of distinct values is at most 1+⌊log2dmindmax⌋.
But the number of distinct pairwise distances is at most (2n), so the number of distinct ⌊log2d⌋ values is at most the number of distinct pairwise distances, which is (2n)<2n for n≥3.
But we can do better:
Let us consider the set {⌊log2dij⌋:1≤i<j≤n}.
For each k, the set of pairs with 2k≤dij<2k+1 is the set of pairs whose distance falls in that interval.
But for n points, the number of possible intervals [2k,2k+1) that contain at least one pairwise distance is at most n−1 (since the minimal and maximal distances differ by at most a factor of n−1).
Thus, the number of distinct values is at most 1+⌊log2(n−1)⌋<2n for all n≥1.
Therefore, Gauss writes down less than 2n distinct values.