I learned that the fundamental group of $O(n)$ is $\Bbb{Z}/2\Bbb{Z}$ (for $n>2$). What is the explicit expression for its topological invariant? To be specific:
Given a smooth path $\{M(t):T^1\rightarrow{O(n)}\}$, find the functional that maps each path to its corresponding element in $\pi_1[O(n)]$.