MathDB
Problems
Contests
National and Regional Contests
USA Contests
USA - College-Hosted Events
Harvard-MIT Mathematics Tournament
2017 Harvard-MIT Mathematics Tournament
24
24
Part of
2017 Harvard-MIT Mathematics Tournament
Problems
(1)
2017 Guts #24: How to find 2^2016 mod p?
Source:
2/21/2017
At a recent math contest, Evan was asked to find
2
2016
(
m
o
d
p
)
2^{2016} \pmod{p}
2
2016
(
mod
p
)
for a given prime number
p
p
p
with
100
<
p
<
500
100 < p < 500
100
<
p
<
500
. Evan has forgotten what the prime
p
p
p
was, but still remembers how he solved it:[*] Evan first tried taking
2016
2016
2016
modulo
p
−
1
p - 1
p
−
1
, but got a value
e
e
e
larger than
100
100
100
. [*] However, Evan noted that
e
−
1
2
(
p
−
1
)
=
21
e - \frac{1}{2}(p - 1) = 21
e
−
2
1
(
p
−
1
)
=
21
, and then realized the answer was
−
2
21
(
m
o
d
p
)
-2^{21} \pmod{p}
−
2
21
(
mod
p
)
.What was the prime
p
p
p
?
number theory