Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Modulus ? How TO

  • To: mathgroup at
  • Subject: [mg47764] Re: Modulus ? How TO
  • From: James Burbano <james.burbano at>
  • Date: Mon, 26 Apr 2004 02:40:56 -0400 (EDT)
  • References: <c6fvi2$4j5$>
  • Sender: owner-wri-mathgroup at

Hi Eric.

The function you are looking for is PowerMod[a,b,n] which calculates a^b 
(mod n).

If you enter, PowerMod[2,5,10] , Mathematica returns 2


Eric wrote:

>Hello !
>I rode the user manual, but i didn't understand how to compute a modulus ?
>I would compute evaluate something like "2^5 modulus 10"
>Wich command do i have to input ?

  • Prev by Date: Re: Modulus ? How TO
  • Next by Date: Question on pattern matching
  • Previous by thread: Re: Modulus ? How TO
  • Next by thread: Re: Modulus ? How TO