Suppose the gravitational force varies inversely as the nth power of distance. Then, the time period of a planet in circular orbit of radius r around the sun will be proportional to
As, gravitational force provides the necessary centripetal force
Also,
or
or