Solution 1 (by Jon Schneider). Let A be the set of good trees. Consider the operation S which takes a tree, and replaces each edge connecting vertices x and y with an edge connecting vertices x+1 and y+1 (labels taken modulo n). Note that S is invertible and sends good trees to good trees, so it partitions the set A into several orbits (where two trees are in the same orbit if you can reach one from the other by repeatedly applying S). We will show that all orbits either have size n or n/2, thus proving the required statement.
Given any tree T, note that SnT=T (because x+n≡x(modn)). Now, if the orbit that T belongs to has size r, then r is the smallest positive value satisfying SrT=T, and it follows that r must divide n. We now have two cases.
* Case 1 In this case, we assume that r does not divide n/2. Consider any edge (x,y) of T. Note that if SrT=T, then this implies that the edge (x+r,y+r) is also in T, so in particular, the n/r edges
(x,y),(x+r,y+r),(x+2r,y+2r),…,(x−r,y−r)
must belong to T. Now, note that all of these edges are distinct; indeed, if the edges (x,y) and (x+ar,y+ar) are the same (for some 1≤a<rn), then the only way this can happen is if (because x=x+ar)
xy≡y+ar≡x+ar
But this can only happen if x≡x+2ar, or equivalently, n∣2ar. If n is odd, then this means that n∣ar, which cannot happen for 1≤a<rn. Likewise, if n is even, because r does not divide 2n, this likewise implies that n∣ar, and again this cannot happen for our choices of a. Therefore, we can partition the edges of T into groups of rn edges. However, T has n−1 edges, and rn cannot divide n−1 unless r=n, because gcd(n−1,n)=1. It follows that r must equal n, and therefore that the orbit has size n.
* Case 2 In this case, we assume that r divides 2n (in particular, n is even). We proceed similarly as in the first case. The only difference this time is that if y=x+2n, then we only have a group of 2rn distinct edges (because in this case, the edges (x+ar,y+ar) are only distinct for 0≤a<2rn). Nonetheless, we can still partition the edges of T into groups of either rn edges or 2rn edges, which means that n−1 must be divisible by 2rn. But again, because gcd(n−1,n)=1, this can only happen if r=2n, and therefore our orbit has size n/2.