Re: Congruence with division
- From: David Kastrup <dak@xxxxxxx>
- Date: Wed, 31 Aug 2005 15:15:57 +0200
"Ulrich Sondermann" <usondermann@xxxxxxxxxxxxx> writes:
> I'm trying to break down a computing problem. I have a number to raise to a
> power and take the modulus of. If I can make the exponent a power of 2 then
> the mod problem is an easy one regardless of size. Here is a simple problem
> but in my case the numbers are quite large.
>
> 3^13 = 3 mod(7), I would like to make this (3^16)/(3^3) Buy computing the
> numerator and denominator separately to simplify the problem.
>
> but 3^16 = 4 mod(7) and 3^3 = 6 mod(7)
So where is the problem? The inverse of 6 is 6, and 24 mod 7 is 3.
And since 3^13 is the same as 3^(13 mod psi(7)) = 3^(13 mod 6) = 3,
this result is fine.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
.
- Follow-Ups:
- Re: Congruence with division
- From: Keith A. Lewis
- Re: Congruence with division
- References:
- Congruence with division
- From: Ulrich Sondermann
- Congruence with division
- Prev by Date: Re: jars and marbles again...
- Next by Date: Re: Congruence with division
- Previous by thread: Congruence with division
- Next by thread: Re: Congruence with division
- Index(es):
Relevant Pages
|