Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Modular-exponentiation/00-TASK.txt
Normal file
13
Task/Modular-exponentiation/00-TASK.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Find the last '''40''' decimal digits of <math>a^b</math>, where
|
||||
|
||||
::* <math>a = 2988348162058574136915891421498819466320163312926952423791023078876139</math>
|
||||
::* <math>b = 2351399303373464486466122544523690094744975233415544072992656881240319</math>
|
||||
|
||||
|
||||
A computer is too slow to find the entire value of <math>a^b</math>.
|
||||
|
||||
Instead, the program must use a fast algorithm for [[wp:Modular exponentiation|modular exponentiation]]: <math>a^b \mod m</math>.
|
||||
|
||||
The algorithm must work for any integers <math>a, b, m</math>, where <math>b \ge 0</math> and <math>m > 0</math>.
|
||||
<br><br>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue