1 version of the statement of Counting nondegenerate Hermitian frames over a finite field, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 1 , first version
Let $k$ be a finite field of odd characteristic, $K/k$ a quadratic field extension, and $\sigma$ its nontrivial involutive $k$-automorphism. Put $q=|k|$. Let $0\le a\le M$, and let $J\in M_M(K)$ and $T\in M_a(K)$ be invertible $\sigma$-Hermitian matrices. For vectors $X_0,\ldots,X_{a-1}\in K^M$, put $\operatorname{Gram}_J(X)_{ij}=\sigma(X_i)^tJX_j$. Then
$$\#\{X\in(K^M)^a:\operatorname{Gram}_J(X)=T\}=\prod_{j=0}^{a-1}\left(q^{2(M-j)-1}-(-1)^{M-j}q^{M-j-1}\right).$$
The product is $1$ when $a=0$.