Re: a^(b^x) mod n?
From: Zsuzsanna Doncho (nospam_at_nospam.com)
Date: 06/22/05
- Next message: James Muir: "Re: AKS primality test question"
- Previous message: John Smith: "AKS primality test question"
- In reply to: fredsaf_20055_at_yahoo.com: "a^(b^x) mod n?"
- Next in thread: Colin Percival: "Re: a^(b^x) mod n?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 22 Jun 2005 15:40:59 +0200
Hi,
fredsaf_20055@yahoo.com wrote:
> Given positive integers a,b,x,n is it possible to efficiently compute:
>
> a^(b^x) mod n?
>
> phi(n) is unknown and b^x is so large it can't be used directly.
>
> Or is it known this to be a hard problem?
>
> Thanks.
You can compute the value b^x and then use the square and multiply
algorithm. See for example:
http://en.wikipedia.org/wiki/Square-and-multiply_algorithm
- Next message: James Muir: "Re: AKS primality test question"
- Previous message: John Smith: "AKS primality test question"
- In reply to: fredsaf_20055_at_yahoo.com: "a^(b^x) mod n?"
- Next in thread: Colin Percival: "Re: a^(b^x) mod n?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading