Modular Powers
Actions
Vote :
ScreenshotAperçu

Informations
Catégorie :Category: Maths TI-Nspire
Auteur Author: Ovin Herath
Type : Python
Taille Size: 1.90 Ko KB
Mis en ligne Uploaded: 16/12/2020 - 03:51:26
Uploadeur Uploader: seafire220 (Profil)
Téléchargements Downloads: 46
Visibilité Visibility: Archive publique
Shortlink : https://tipla.net/a2669015
Type : Python
Taille Size: 1.90 Ko KB
Mis en ligne Uploaded: 16/12/2020 - 03:51:26
Uploadeur Uploader: seafire220 (Profil)
Téléchargements Downloads: 46
Visibilité Visibility: Archive publique
Shortlink : https://tipla.net/a2669015
Description
Calculates the value of modular powers.
given one wants to calculate a^kmodn
input modpower(a,k,n)
and the output will be the value of a^kmodn
this algorithm uses the exponentiation property of modular arithmetic. Also note that one needs to run the program in the shell first before running the modpower function.
given one wants to calculate a^kmodn
input modpower(a,k,n)
and the output will be the value of a^kmodn
this algorithm uses the exponentiation property of modular arithmetic. Also note that one needs to run the program in the shell first before running the modpower function.