Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg47764] Re: Modulus ? How TO
  • From: James Burbano <james.burbano at verizon.net>
  • Date: Mon, 26 Apr 2004 02:40:56 -0400 (EDT)
  • References: <c6fvi2$4j5$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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

Regards,
Jim


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 ?
>
>Regards,
>
>Eric
>
>
>  
>


  • 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