Previous Up Next

11.8.10  Computing an (mod p )

For integers a, n and p, the powmod or powermod command finds an (mod p ).

Examples

powmod(5,2,13)
     
12           
powmod(5,2,12)
     
1           

Previous Up Next