Reversed Permutation Index Reversed Permutation Index

This mission is the inverse function of Permutation Index. (The mission idea is by przemyslaw.daniel.)

You are given the length of the permutation (an integer) and the permutation index (an integer starting from 1). The task is to calculate one of the permutations of the consecutive integers...

You should be an authorized user in order to see the full description and start solving this mission.