Make Pari-gp Return Integer Instead of Modulo

  • Thread starter Thread starter a1call
  • Start date Start date
  • Tags Tags
    Integer
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
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.
 
Physics news on Phys.org
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