Sally Andria on Fri, 21 Apr 2017 00:49:49 +0200

 Function to calculate the power of a number in a finite group Zn

• To: pari-users@pari.math.u-bordeaux.fr
• Subject: Function to calculate the power of a number in a finite group Zn
• From: Sally Andria <sally.andrya@gmail.com>
• Date: Thu, 20 Apr 2017 19:49:41 -0300
• Delivery-date: Fri, 21 Apr 2017 00:49:49 +0200
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ysPh6mxVVhwIHisnd8VvhBgWr4HgNe0rK/PddZ/faWw=; b=EjhRQnI4MNU2G7ciETWigsevQMU2aJ3w88EFWucXT9MP4Tj7h65SQrTidsjYOo3GOA gCnTfavcaMv49LK6EE1PlnmGPanY7FVgrlsUyKkDc/fYftHaQx1O8L5cWwEQWNqhvhcL 8OW0PCnMVkaEJ85PpEc12jmwCyX6qWr4EB32a0Pjsex+owcuQvQZ0bGkZVov18dDkP/O xV7lqrEDNqNknyoJ20xnVQo8tCjGZ2AyBAQ7JJoUhE93S+b6I3qnVixBf2LMnLeASUP8 jEWwqBekRDIK0B8t077DCsxCwTrJ9lIomT2N4or+v3CdNakARKivC3AyaD9Myn08A9NJ s3tg==

I'm working with criptography, u
I choose a prime

?     isprime(37462350986754834657874659823456747);
%1  = 0
?     nextprime(37462350986754834657874659823456747);
%2  37462350986754834657874659823456849
?     isprime(37462350986754834657874659823456849);
%3  = 1

So I find a generator and your order

?     znprimroot(37462350986754834657874659823456849);
%5  Mod(17, 37462350986754834657874659823456849)
?     g = Mod(17, 37462350986754834657874659823456849);
%6  Mod(17, 37462350986754834657874659823456849)
?     znorder(g);
%7 37462350986754834657874659823456848

So I have a group Zp (p=37462350986754834657874659823456849)
and a generator g= Mod(17, 37462350986754834657874659823456849)
But I want to calculate g elevated to the number e= 5466093453756547, but I didn't finde the function to calculate this.

Anybody know?

S
A