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 > > > >