MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Inverse of a Number


In article <DI9Ay8.Gz at wri.com>, Enrico C. Walker <ewalke1 at gl.umbc.edu> wrote:
>First of all, I thank you all those who responded to my earlier question.
>My second question is How to find the inverse of a number in some Modulo 
>system. 

(Local) In[1]:= ?PowerMod
PowerMod[a, b, n] gives Mod[a^b, n]. For negative b,
   PowerMod[a, b, n] gives modular inverses.

(Local) In[3]:= PowerMod[9, -1, 26]
(Local) Out[3]= 3


		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at princon.com
		http://www.princon.com/princon


  • Prev by Date: Re: [Q] how fast is each machine with Mathematica ?
  • Next by Date: Re: Taylor series expansion
  • Previous by thread: Re: Inverse of a Number
  • Next by thread: Eigenvalues of Generalised Matrix