Opened 13 years ago

Closed 13 years ago

#3748 closed defect (duplicate)

bug in integers modulo n

Reported by: zimmerma Owned by: somebody
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

this was reported to me by Emmanuel Thome with Sage 3.0.3:

sage: R=Integers(17^5)
sage: R
Ring of integers modulo 1419857
sage: R(17)^5
1419857
sage: R(17)^5==0
False
sage: R(R(17)^5)
0

Clearly R(17)5 is not in canonical form, which is what we would expect... However:

sage: R(17)*R(17)*R(17)*R(17)*R(17)
0

Change History (1)

comment:1 Changed 13 years ago by mabshoff

  • Milestone changed from sage-3.1 to sage-duplicate/invalid
  • Resolution set to duplicate
  • Status changed from new to closed

Hi Paul,

David Harvey reported the same problem from sage-devel and already put up a patch that has been positively reviewed patch at #3747. So I am closing this as a duplicate.

Cheers,

Michael

Note: See TracTickets for help on using tickets.