Pari-gp Modulo

  • Thread starter a1call
  • Start date
  • #1
85
5

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
85
5
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
 

Related Threads on Pari-gp Modulo

Replies
1
Views
2K
  • Last Post
Replies
1
Views
2K
Replies
6
Views
10K
  • Last Post
Replies
6
Views
11K
Replies
0
Views
2K
  • Last Post
Replies
0
Views
2K
Top