I have an orthogonal matrix $A^{n\times n}$, that is $A^TA=I$. What is the number of equations $A$ has to satisfy?
It seems to me that the answer is $\frac{n}{2}(n+1)$. My reasoning as follows. Each element of $A^TA$ corresponds to an equation. The diagonal elements are not repeated but the off diagonal elements in the upper triangular matrix are repeated also in the lower triangular matrix. So we need half the elements + the rest of the diagonal matrix that is $n^2/2 + n/2$. Is this correct?
As noted in the comments $$ A^T A = I $$ is equivalent to $n^2$ equations in the matrix components: $$ \sum_j a_{ij}^T a_{jk} = \sum_j a_{ji} a_{jk} = \delta_{ik} \quad\quad (i, k \in \{1,\dotsc, n\}) $$ On the main diagonal we have $i=k$ and up to $n$ different equations $$ \sum_j a_{ji}^2 = 1 $$ Otherwise we have $$ 0 = \sum_j a_{ji} a_{jk} = \sum_j a_{jk} a_{ji} $$ which gives up to $(n-1) + (n-2) + \dotsb + 1 = (n-1)n/2$ different equations.
So we have up to $n(n+1)/2$ different equations.