I know that SO(n) means a rotation in n dimensions, but sometimes I see a second index, such as SO(n,p). What does p mean? I cannot find much resources on this.
The group SO(m,n) is the group of rotations that keep invariant a symmetric metric with signature m + signs and n - signs. The signature is the signs of its eigenvalues. So SO(m,n) is closely related to SO(m+n). Symbolically, for R in SO(m,n) and metric g,
RT.g.R = g