MathGroup Archive 1995

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

Search the Archive

Re: Inverse of a Number

  • Subject: [mg2570] Re: Inverse of a Number
  • From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
  • Date: Tue, 21 Nov 1995 09:25:10 -0500
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: University of Colorado, Boulder

In article <DI9Ay8.Gz at>, Enrico C. Walker <ewalke1 at> 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 

(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

  • Prev by Date: import graphics formats
  • Next by Date: Re: Q: Help processing large arrays?
  • Previous by thread: Re: Inverse of a Number
  • Next by thread: Re: Inverse of a Number