\(P.sin\left(\dfrac{\pi}{7}\right)=sin\dfrac{\pi}{7}.cos\dfrac{\pi}{7}.cos\dfrac{2\pi}{7}.cos\dfrac{4\pi}{7}\)
\(\Leftrightarrow P.sin\dfrac{\pi}{7}=\dfrac{1}{2}sin\dfrac{2\pi}{7}cos\dfrac{2\pi}{7}cos\dfrac{4\pi}{7}\)
\(\Leftrightarrow P.sin\dfrac{\pi}{7}=\dfrac{1}{4}sin\dfrac{4\pi}{7}cos\dfrac{4\pi}{7}\)
\(\Leftrightarrow P.sin\dfrac{\pi}{7}=\dfrac{1}{8}sin\dfrac{8\pi}{7}=\dfrac{1}{8}sin\left(\pi+\dfrac{\pi}{7}\right)\)
\(\Leftrightarrow P.sin\dfrac{\pi}{7}=-\dfrac{1}{8}sin\dfrac{\pi}{7}\)
\(\Rightarrow P=-\dfrac{1}{8}\)