What is the remainder when 12987^(65987036) is divided by 5? Choose the correct choice from the following choices:
A) 0  B) 1  C) 2  D) 3  E) 4
We need to find the units digit of the number.   The units digit of powers of seven repeats 7, 9, 3, and 1 cyclically.   Since 65987036 has the form 4a, the units digit is 1.   Then the remainder when dividing by 5 is 1.   The answer is 1.
<result>B</result>
What is the remainder when 12987^(65987036) is divided by 5?