366. Find the value of $p$ geometric means inserted between the given positive numbers $a$ and $b$, where $a<b$.
Instruction. According to the problem, all numbers form a geometric progression, and the task is to determine the common ratio of the progression from the first term $a$, the last term $b$, and the number of terms $p+2$ (two terms are given and $p$ needs to be inserted), i.e.

$$
b=a q^{p+1}
$$

or

$$
q=\sqrt[p+1]{\frac{b}{a}}
$$

The sequence will have the form:

$$
a, a \sqrt[p+1]{\frac{b}{a}}, a \sqrt[p+1]{\left(\frac{b}{a}\right)^{2}}, \ldots, b
$$