A sequence of positive integers is defined by for all integers . What is the remainder when is divided by ?
Answer: 4
Answer
The remainder when is divided by is .
By reducing , we observe that because the exponent is even. The powers of follow a 3-step cycle (). Dividing the exponent by leaves a remainder of , meaning . Adding the remainders for both terms yields .
Step-by-Step Solution
Key Concept
Modular arithmetic cyclicity and negative congruences