I cannot seem to figure out how to make Sage act on a point with a permutation. For example, if I act on the integer 17 with the permutation (5,17), the result is 17. This works fine in vanilla GAP:
gap> 17^(17,5); 5 gap> OnPoints(17,(17,5)); 5
But I can't seem to determine the Sage command - does Sage only have the ability to multiply permutations with p1.action(p2), or can it do what I'm getting at here?
I tried accessing the GAP interface directly with gap.console(), but the resulted in the kernel hanging. Actually, even SageMathCell can't seem to figure out what gap.console() is supposed to do.
Anyone have any thoughts?