An algorithm that computes modular nested exponentiation efficiently
Project description
modular-nested-exponentiation
License | Version | ||
Wheel | Implementation | ||
Status | Supported versions | ||
Downloads |
Modular nested exponentiation
We present an algorithm that takes as input an arbitrarily long sequence of positive integers a₁, a₂, a₃, ..., aₙ
and a positive integer m
and computes a₁^(a₂^(···^aₙ)) mod m
efficiently (that is, without computing the value of the nested exponent).
Without this algorithm, this type of computation is unfeasible for modern computers even for short input sequences containing small integers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mod-nest-exp-1.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for mod_nest_exp-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c6d54ffee7af7d3365043c00973462100874cca968416e7a4b664124c907ab |
|
MD5 | 79ac5719c824439b99612a5164ce71eb |
|
BLAKE2b-256 | 05d02eabcdda02d47824e7d2611bc7f46ee843199faf0e170f78c940f9715e2c |