If we represent a permutation of the integers 1...n as list L (or
word) say w=2431 then L=[2,4,3,1]. Is there a built-in command to find
the inverse of the permutation as a list. w^{-1}= 4132 or L=[4,1,3,2]
i.e. find the position in the list where j appears?
Thanks,
Alejandro Morales
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 74:46:10 |
Calls: | 6,489 |
Calls today: | 2 |
Files: | 12,096 |
Messages: | 5,276,047 |