2017 Guts #24: How to find 2^2016 mod p?
Source:
February 21, 2017
number theory
Problem Statement
At a recent math contest, Evan was asked to find for a given prime number with . Evan has forgotten what the prime was, but still remembers how he solved it:[*] Evan first tried taking modulo , but got a value larger than .
[*] However, Evan noted that , and then realized the answer was .What was the prime ?