A set of points in the plane is self-rotating if there is a point P and an angle α in degrees with 0<α<360 such that rotating the plane around P by α sends every point of the set to a point that also belongs to the set. The point P is the center of the rotation.
You are given a set of N distinct points whose coordinates are integers. For each size 1,2,…,N, count the subsets of that size that are self-rotating. Two subsets are different when one of them contains a point that the other does not contain.