In this snippet of Sage code I believe that pos is  [1,2,3]. But   mod(1,p) 
in pos  evaluates to False, while mod(1,p) in [1,2,3]  evaluates to True. 
However  1%p in pos   and   1%p  in  [1,2,3]   both evaluate to True.

p=7
pos=[1..(p-1)/2]
pos==[1,2,3], mod(1,p) in pos, mod(1,p) in [1..3], 1%p in pos, 1%p in [1..3]
       



(True, False, True, True, True)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to