\[\mu\left(n\right)=\begin{cases}1,&n=1,\\
(-1)^{\nu\left(n\right)},&a_{1}=a_{2}=\dots=a_{\nu\left(n\right)}=1,\\
0,&\mbox{otherwise}.\end{cases}\]