Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Pari-gp Modulo

  1. May 1, 2016 #1
    Is there a way to make Pari-gp return an integer rather than another Modulo?

    Can
    Code (Text):
    (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.
     
  2. jcsd
  3. May 2, 2016 #2
    I got the answer on another board from a member nicknamed axn:
    Code (Text):
    ? 1100%19
    %1 = 17
    ? lift( Mod(1100, 19) )
    %2 = 17
    ? centerlift( Mod(1100, 19) )
    %3 = -2
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted