When does $\vec{a} \langle \vec{b}, \vec{c} \rangle = \langle \vec{a}, \vec{b} \rangle \vec{c}$, where $\langle \vec{a}, \vec{b} \rangle$ is the dot product of $\vec{a}$ and $\vec{b}$?
I can see that it holds when $\vec{a}$ and $\vec{c}$ are perpendicular to $\vec{b}$, because then $\langle \vec{a}, \vec{b} \rangle = \langle \vec{b}, \vec{c} \rangle = 0$, but how do I make sure if there are any other possibilities?
If $\langle\vec{a},\,\vec{b}\rangle=0$, we require $\vec{a}=0\lor\langle\vec{b},\,\vec{c}\rangle=0$. We can deal with the case $\langle\vec{b},\,\vec{c}\rangle=0$ similarly, so hereafter assume neither is true.
We need $\vec{a}$ to be parallel to $\vec{c}$, where I call the zero vector parallel to everything, and indeed if either $\vec{a}$ or $\vec{c}$ vanishes the condition holds. Otherwise parallelism can be stated as $\vec{a}=k\vec{c}$ for $k\ne 0$, so the given condition reduces to $k\vec{c}\langle\vec{b},\,\vec{c}\rangle=\langle k\vec{c},\,\vec{b}\rangle\vec{c}$. For a real-valued inner product, this holds for any $\vec{b},\,\vec{c}$. For a complex-valued inner product linear in its first argument, we also need $\langle\vec{b},\,\vec{c}\rangle\in\mathbb{R}$. For a complex-valued inner product antilinear in its first argument, we instead have the final requirement $k\langle\vec{b},\,\vec{c}\rangle\in\mathbb{R}$.