[math-fun] convert vector into sum of permutation vectors?