$$\left. \begin{array} { l } { 21 p ^ { 2 } - 1 = 4 p ^ { x ( a ) } } \\ { ( p + \frac { 1 } { p } ) ^ { 2 } + \frac { 1 } { p } ) ^ { 2 } } \\ { p ^ { 3 } + 5 p } \\ { p ^ { 2 } + 4 p \right.$$
$\left\{\begin{matrix}x=\frac{\log_{p}\left(\frac{21p^{2}-1}{4}\right)}{a}\text{, }&p\neq 1\text{ and }a\neq 0\text{ and }q=p^{2}+2+\frac{1}{p}+\frac{1}{p^{2}}\text{ and }p>\frac{\sqrt{21}}{21}\\x\in \mathrm{R}\text{, }&p=\frac{\sqrt{105}}{21}\text{ and }a=0\text{ and }q=\frac{\sqrt{105}}{5}+\frac{676}{105}\end{matrix}\right.$