Talk:Modular exponentiation: Difference between revisions

Content added Content deleted
(→‎What if m < 0?: new section)
(→‎What if m < 0?: Save us an argument; exclude the case)
Line 5: Line 5:


My draft currently specifies m &ne; 0. The answer when m < 0 might be ill-defined or inconsistent. Should I change from m &ne; 0 to m > 0 here? --[[User:Kernigh|Kernigh]] 23:18, 20 December 2011 (UTC)
My draft currently specifies m &ne; 0. The answer when m < 0 might be ill-defined or inconsistent. Should I change from m &ne; 0 to m > 0 here? --[[User:Kernigh|Kernigh]] 23:18, 20 December 2011 (UTC)
: You could specify them all to be positive integers without causing problems; that's the only case that anyone actually wants in practice, and the others get into arguments (due to differing interpretations of how to extend the modulus operation to non-positive-valued domains). –[[User:Dkf|Donal Fellows]] 02:00, 21 December 2011 (UTC)