Question
Let n be a natural number. Let A1A2...,An be a regular polygon and X = 1, 2, . . , n}. A subset { i1,i2,...,ik } of X, with k≥3 and i1<i2<...<ik , is called a good subset if the angles of the polygon Ai1Ai2...Aik , when arranged in the increasing order, are in an arithmetic progression. If n is a prime, find number of elements that a proper good subset of X contains?