Make Pari-gp Return Integer Instead of Modulo

  • Thread starter a1call
  • Start date
  • Tags Tags
    Integer
1 reply · 2K views · last reply
a1call
Messages
90
Reaction score
5
Is there a way to make Pari-gp return an integer rather than another Modulo?

Can
Code:
(21:49) gp > Mod(1100,19)
%11 = Mod(17, 19)
return 17?
Sort of like Wolfram Alpha:
https://www.wolframalpha.com/input/?i=Mod[1100,19]

Thanks in advance.
 
I got the answer on another board from a member nicknamed axn:
Code:
? 1100%19
%1 = 17
? lift( Mod(1100, 19) )
%2 = 17
? centerlift( Mod(1100, 19) )
%3 = -2