If the expression $(1 + ir)^3$ is of the form of $s(1 + i)$ for some real $s$ where $r$ is also real and then the value of $r$ can be
$(A) \cot{\frac{\pi}{8}}$ $(B) \tan{\frac{\pi}{12}}$ $(C) \tan{\frac{5\pi}{8}}$ $(D) \sec{\pi}$
Since real and imaginary parts of the given complex number should be same. So I put $3\tan^{-1}(r)=\pi/4$ I'm only getting (B) as an answer but according to my book (B),(C),(D) are all correct options. Where did I go wrong?
The argument of $(1+ir)^3$ is $3$ times that of $1+ir$, which is known to be one of $\pi/4$, $5\pi/4$. Then $$\arctan(r)=\frac\pi{12},\frac{9\pi}{12},\frac{17\pi}{12},\frac{5\pi}{12},\frac{13\pi}{12},\frac{21\pi}{12}.$$