It looks like you want $\sin(mp)=0$ when $m$ is a multiple of 2 and 3 respectively. One way of achieving this is to set $p=\pi/2$ and $p=\pi/3$.
It looks like you want $\sin(mp)=0$ when $m$ is a multiple of 2 and 3 respectively. One way of achieving this is to set $p=\pi/2$ and $p=\pi/3$.