0

Let $G=SL(2,\mathbb{R})$ and let $K=SO(2)$ be our maximal compact subgroup. Let $(\pi,V)$ be a real irreducible representation of dimension $d$.
Apparently one has that the set of $K$-fixed vectors $V^K$ is $1$-dimensional if and only if $d$ is even. In the other case, the dimension of $V^K$ is...