Given a finite-dimensional vector space over a finite field of odd characteristic, and equipping with an orthogonal (symplectic, unitary) geometry, the following two questions are considered:
Given some linearly independent vectors and the matrix , and given scalars , how many vectors , not in the linear span of , satisfy () and ?
Given a matrix with entries from , how many -tuples of linearly independent vectors from satisfy ()?
An exact answer to the first question is derived. Here there are two cases to consider, depending on whether or not the column vector is in the column space of . This result can then be applied iteratively to address the second question.