[math-fun] permuting via rational functions