If \(\theta \in \mathbb{R}\) and \(\frac{1-i \cos \theta}{1+2 i \cos \theta}\) is real number, then \(\theta\) will be (when I: Set of integers)
(A) \((2 n+1) \frac{\pi}{2}, n \in I\)
(B) \(\frac{3 n \pi}{2}, n \in I\)
(C) \(n \pi, n \in 1\)
(D) \(2 n \pi, n \in I\)