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 2016 modulo , but got a value larger than 100. - However, Evan noted that , and then realized the answer was . What was the prime ?
Solution
Answer is . Let . The information in the problem boils down to . From this we can at least read off . Now factor . The values of in this interval are . The prime values of are then 191 and 211. Of these, we take 211 since while . Also, this is (almost) a true story: the contest in question was the PUMaC 2016 Live Round.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.