As stated in the title, the matrix equation is as follows:
$$ AB^n = C $$
where $A$ and $C$ are known matrices of size $1 \times m$.
$$ \begin{bmatrix} a_1 & a_2 & \dots & a_m \end{bmatrix}B^n= \begin{bmatrix} c_1 & c_2 & \dots & c_m \end{bmatrix} $$
The power $n$ is also known. The problem is to find any matrix $B$ of size $m \times m$ which solves this equation. Are there any algorithms or numerical methods that can successfully tackle this problem?