If 2tan2x−5secx is equal to 1 for exactly 7 distinct values of x∈[0, nπ2],n∈N, then the greatest value of n is