Exponentiation by modulo
#5336
Sign in
Statement
Discussion
Exponentiation by modulo
1 second
128 megabytes
Hard
Topics
English
Given integers
a
and
b
. Calculate the value
a^b \bmod p
, where
p = 1000000007
.
Examples
Example 1
Loading
Loading
a
b
mod
p
p
=
1000000007