Another option is to use the pow() function, as in pow(a, b, c).

On Mar 17, 1:58 am, Robert Bradshaw <[email protected]>
wrote:
> mod(a, c)^b
>
> On Wed, Mar 16, 2011 at 10:44 PM, Santanu Sarkar
>
>
>
>
>
>
>
> <[email protected]> wrote:
> > How one can calculate  a^b mod c  in Sage for large b?
>
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to 
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/sage-support
> > URL:http://www.sagemath.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to