For a permutation $a$ of order $n$, let $f(a)$ be a $(n+1)\times (n+1)$ square matrix, and $f(a){i,j}=\sum<j]$, all indices are $1$-indexed.}[a_{i'
For two matrices $A, B$, we define the distance product $A\otimes B$ be $(A\otimes B){i,j} = \min_k \left(A\right)$.}+B_{k,j
You are given two permutations $a, b$ of order $n$, it can be shown that there exists a unique permutation $c$ satisfying $f(a)\otimes f(b)=f(c)$, please compute $c$.