Let n3n \geq 3 be an integer, and consider a circle with n+1n + 1 equally spaced points marked on it. Consider all labellings of these points with the numbers 0,1,,n0, 1, \ldots, n such that each label is used exactly once; two such labellings are considered to be the same if one can be obtained from the other by a rotation of the circle. A labelling is called beautiful if, for any four labels a<b<c<da < b < c < d with a+d=b+ca + d = b + c, the chord joining the points labelled aa and dd does not intersect the chord joining the points labelled bb and cc.

Let MM be the number of beautiful labellings, and let NN be the number of ordered pairs (x,y)(x,y) of positive integers such that x+ynx + y \leq n and gcd(x,y)=1\gcd(x,y) = 1. Prove that

M=N+1.M = N + 1.