Question: How to define a permutation and make it act on a number.

Hi, I am running Maple 12 and this might be a simple question but I couldnt find any guidence in the help section.

Basically I am trying to write a program to attack the ORYX cipher. Part of this needs access to what is essentially a permutation of the numbers 0-255.

How might I go about defining this permutation so that later I may get it to act on any such number?

All I can find in the help section is a command to find the orbit of a specific number, which is more info than I need (and isnt helpful in my program).

 

Thanks in advance,

Dan

Please Wait...