The coefficient of the third term in the expansion of $(x^2-\large\frac{1}{4})^n$,when expanded in descending powers of $x$ is $31$.Then n is equal to
$\begin{array}{1 1}(A)\;16\\(B)\;30\\(C)\;32\\(D)\;\text{None of these}\end{array}$