Ta có: \(P=12\left(5^2+1\right)\left(5^4+1\right)\left(5^8+1\right)\left(5^{16}+1\right)\)
\(\Rightarrow P=\dfrac{24\left(5^2+1\right)\left(5^4+1\right)\left(5^8+1\right)\left(5^{16}+1\right)}{2}\)
\(\Rightarrow P=\dfrac{\left(5^2-1\right)\left(5^2+1\right)\left(5^4+1\right)\left(5^8+1\right)\left(5^{16}+1\right)}{2}\)
\(\Rightarrow P=\dfrac{\left(5^4-1\right)\left(5^4+1\right)\left(5^8+1\right)\left(5^{16}+1\right)}{2}\)
\(\Rightarrow P=\dfrac{\left(5^8-1\right)\left(5^8+1\right)\left(5^{16}+1\right)}{2}\)
\(\Rightarrow P=\dfrac{\left(5^{16}-1\right)\left(5^{16}+1\right)}{2}\)
\(\Rightarrow P=\dfrac{5^{32}-1}{2}\)